Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
feat - template html preview
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Selman <[email protected]>
  • Loading branch information
dselman committed Aug 6, 2020
1 parent a9015db commit 8cb186a
Show file tree
Hide file tree
Showing 12 changed files with 424 additions and 338 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Change Log

### 0.21.9

- HTML preview for template markdown text

### 0.21.8

- Support triggering templates without a `state.json` file
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

The Accord Project extension helps developers to create, test and debug [Accord Project](https://accordproject.org) templates.

For a step-by-step guide on getting started with the extension's features, access our [Beginner Tutorial](https://docs.accordproject.org). For more comprehensive documentation, [follow this link.](https://docs.accordproject.org)
For a step-by-step guide on getting started with the extension's features, access our [VS Code Tutorial](https://docs.accordproject.org/docs/next/tutorial-vscode.html). For more comprehensive documentation, [follow this link.](https://docs.accordproject.org)

![Accord Project Extension Homepage](assets/VSCodeImage.png)

Expand All @@ -29,6 +29,7 @@ Please visit the [Visual Studio Code Marketplace](https://marketplace.visualstud
- Trigger templates (send them data and view the results)
- Syntax highlighting for all files
- Compilation and problem markers
- HTML preview for template markdown text

### Commands

Expand All @@ -37,6 +38,9 @@ Please visit the [Visual Studio Code Marketplace](https://marketplace.visualstud
- Generate PlantUML class diagram (context-click on root folder)
- Trigger a template, parsing data from sample.md and passing in `request.json` and `state.json` (context-click on root folder)

### Views
- HTML preview for template text (open `grammar.tem.md` and then press the _Show Preview_ icon in the editor menu)

### Quick Fixes

- Add a variable to the template model if an undeclared variable is used in `grammar.tem.md`. _Note that the `model.cto` file must be open for the quick fix to be available._
Expand Down
3 changes: 3 additions & 0 deletions assets/dark/open-preview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/light/open-preview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
203 changes: 65 additions & 138 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Accord Project extension for Visual Studio Code, providing tools for template development.",
"author": "Accord Project",
"license": "Apache-2.0",
"version": "0.21.8",
"version": "0.21.9",
"publisher": "accordproject",
"repository": {
"type": "git",
Expand All @@ -18,12 +18,12 @@
"vscode-test": "^1.3.0"
},
"dependencies": {
"@accordproject/cicero-core": "^0.21.0",
"@accordproject/cicero-engine": "^0.21.0",
"@accordproject/cicero-core": "^0.21.1",
"@accordproject/cicero-engine": "^0.21.1",
"@accordproject/concerto-core": "^0.82.8",
"@accordproject/concerto-tools": "^0.82.8",
"@accordproject/markdown-it-cicero": "^0.12.0",
"@accordproject/markdown-it-template": "^0.12.0",
"@accordproject/markdown-it-cicero": "^0.12.2",
"@accordproject/markdown-it-template": "^0.12.2",
"vscode-languageclient": "^6.1.3"
}
}
Loading

0 comments on commit 8cb186a

Please sign in to comment.