Skip to content

Commit

Permalink
code: Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Jan 15, 2024
1 parent b078bcc commit 0556af8
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ The `esbonio` language server aims to make it easier to work with [Sphinx](https

### Live Preview

The extension can show a live HTML preview of the documentation, so the preview contents change whenever the document is updated
The extension can show a live HTML preview of the documentation, so the preview contents change whenever the document is updated.
Syncronised scrolling between the source and preview is also supported.

![HTML Preview](../resources/images/vscode-preview-demo.gif)

Expand Down Expand Up @@ -47,14 +48,29 @@ Documentation is provided for certain roles and directives when the cursor hover

![Hover](../resources/images/hover-demo.png)

### Outline
### Document & Workspace Symbols

Sections within a document are displayed in the "Outline" view
Section titles and directives within a document are recognised as symbols and displayed in the "Outline" view.
You can also search for symbols within the workspace using the `Ctrl+T` shortcut.

![Document Outline](../resources/images/document-symbols-demo.png)
![Document & Worspace Symbols](../resources/images/document-workspace-symbols-demo.png)

## Supplement Extensions
## Setup

The [reStructuredText](https://marketplace.visualstudio.com/items?itemName=lextudio.restructuredtext) extension as of [v190.1.17](https://github.com/vscode-restructuredtext/vscode-restructuredtext/releases/tag/190.1.17) integrates many other useful tools such as the traditional linters like [`doc8`](https://pypi.org/project/doc8/) and [`rstcheck`](https://pypi.org/project/rstcheck/). It also provides additional editor functionality for working with reStructuredText in general. More details can be found on the [extension's page](https://marketplace.visualstudio.com/items?itemName=lextudio.restructuredtext).
The `esbonio` language server is bundled with this extension, so there is no need to install it separately.
However, the server will need access the Python environment you use to build your documentation.

The [reStructuredText Syntax highlighting](https://marketplace.visualstudio.com/items?itemName=trond-snekvik.simple-rst) extension provides syntax highlighting for reStructuredText files. More details can be found on the [extension's page](https://marketplace.visualstudio.com/items?itemName=trond-snekvik.simple-rst).
1. Open the folder containing your documentation project in VSCode, (opening a single file without an active workspace is not currently supported and will lead to errors).
1. Using the `Python: Select Interpreter` command from the Python extension, choose the environment you use to build your documentation.
(You might be required to run the `Esbonio: Restart Language Server` command for it to take effect)
1. Open a reStructuredText or markdown file from your Sphinx project.
1. Sphinx build output will be available in Esbonio's `Output` view in VSCode's panel.

## Supplementry Extensions

The [reStructuredText](https://marketplace.visualstudio.com/items?itemName=lextudio.restructuredtext) extension as of [v190.1.17](https://github.com/vscode-restructuredtext/vscode-restructuredtext/releases/tag/190.1.17) integrates many other useful tools such as the traditional linters like [`doc8`](https://pypi.org/project/doc8/) and [`rstcheck`](https://pypi.org/project/rstcheck/).
It also provides additional editor functionality for working with reStructuredText in general.
More details can be found on the [extension's page](https://marketplace.visualstudio.com/items?itemName=lextudio.restructuredtext).

The [reStructuredText Syntax highlighting](https://marketplace.visualstudio.com/items?itemName=trond-snekvik.simple-rst) extension provides syntax highlighting for reStructuredText files.
More details can be found on the [extension's page](https://marketplace.visualstudio.com/items?itemName=trond-snekvik.simple-rst).

0 comments on commit 0556af8

Please sign in to comment.