-
-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add syntax highlighting to various code blocks #1391
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this cleanup of dev documentation.
LGTM.
## Context <!-- Please include a summary of the change, with motivation and context --> <!-- Bonus: if you are comfortable writing one, please insert a user-story https://en.wikipedia.org/wiki/User_story#Common_templates --> Was just reading through the docs here on GH and saw a lot of references to files that could have relative links to those files for easy click through ## Details <!-- Describe here how you address the issue --> - when a specific file in the codebase was referenced, link to it - did not otherwise change the formatting of the content and left it as-is (e.g. bold text) - also fix a few incorrect (moved?) locations: - `HomeDBManager.ts` now in `homedb/` dir - a few files missing extensions - some incorrect extensions (e.g. was `.ts` but it's actually still `.js`) - having links to the files makes it much easier to find these issues - and standardize one file reference that was different from the rest ("Python sandbox in this code:" -> "Python sandbox in [...]") ## Related issues <!-- If suggesting a new feature or change, please discuss it in an issue first --> <!-- If fixing a bug, there should be an issue describing it with steps to reproduce --> <!-- If this does not solve entirely the issue, make also a checklist of what is done or not: --> Made some other docs improvements in #1391 ## Has this been tested? <!-- Put an `x` in the box that applies: --> - [n/a] 👍 yes, I added tests to the test suite - [n/a] 💭 no, because this PR is a draft and still needs work - [x] 🙅 no, because this is not relevant here - [n/a] 🙋 no, because I need help <!-- Detail how we can help you --> I double-checked all the links to ensure they worked properly. Also my code editor (VS Code) would autocomplete the relative paths correctly when I typed them as another form of check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @agilgur5 (and @hexaltation for reviewing)
@agilgur5 could you rebase / resolve the conflict? |
- they were either missing a language specifier entirely, or were using a different flavor of markdown from GH that has different specifiers - e.g. `lang=python` vs `python` - also fix various small `markdownlint` issues - mainly whitespace around codeblocks and headings - there's more `markdownlint` issues, but I only applied some less obtrusive ones - and fix a few grammatical errors - e.g. missing article ("the"), etc
e70e8ff
to
815d8f2
Compare
Rebased and resolved conflicts 👍 |
Context
Was just reading through the docs here on GH and saw some code blocks were missing syntax highlighting
Details
the code blocks were either missing a language specifier entirely, or were using a different flavor of markdown from GH that has different specifiers
lang=python
vspython
also fix various small
markdownlint
issuesmarkdownlint
issues, but I only applied some less obtrusive onesand fix a few grammatical errors and formatting errors
Related issues
Made some other docs improvements in #1392
Has this been tested?
I manually viewed the rendered markdown and ensured the code now had syntax highlighting. Example