sapling/website/docs
Shish d496b5c44c add sl-shell-example syntax-highlighting language (#264)
Summary:
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/sapling/pull/264).
* __->__ https://github.com/facebook/sapling/issues/264

[docs] add sl-shell-example syntax-highlighting language

 Right now the example sl sessions have no hightlighting, or sometimes they pretend to be bash, which kind-of-half-works but also half doesn't work and is ugly (See the "Before" example - there is random highlighting for some numbers in the middle of command output, the ".." in "..." is randomly highlighted as a directory, etc)

This diff adds a new custom Prism language called "sl-shell-example" which does syntax highlighting specifically tailored for our example sessions with these main parts:

```
# comment
$ shell command
~/my/subdir $ shell command in a specific subdirectory
output
```
{F806536674}

(For the record, Prism already has a language called "shell-session", but that language doesn't support comments (which is something we make heavy use of), and also it tries to be clever by highlighting random words in the middle of shell commands (which is just distracting in the context of sapling docs))

Pull Request resolved: https://github.com/facebook/sapling/pull/264

Test Plan:
Before:
{F806536931}

After:
{F806537002}

Reviewed By: quark-zju

Differential Revision: D41522986

Pulled By: shish

fbshipit-source-id: fda9beb423a3c74d90c4cb387eb8cba3914a4693
2022-12-01 14:43:14 -08:00
..
addons website: "Foo Bar" => "Foo bar" title for more pages 2022-11-21 11:51:00 -08:00
commands s/sl checkout/sl goto/g 2022-11-16 12:22:50 -08:00
git Fix typo in docs (#164) 2022-11-18 16:51:46 -08:00
internals add sl-shell-example syntax-highlighting language (#264) 2022-12-01 14:43:14 -08:00
introduction add sl-shell-example syntax-highlighting language (#264) 2022-12-01 14:43:14 -08:00
overview add sl-shell-example syntax-highlighting language (#264) 2022-12-01 14:43:14 -08:00
scale Grammar fixes in organizational.md (#247) 2022-11-23 12:07:04 -08:00