Commit 5eede85
Fetch readme and generate Markdown for CLI flags at build time (#113)
* use custom integration
* add message
* rm cli.md
* trying single code block highlight again. why is it blue???
* steal starlight's colours to make it grey ;-;
* Revert "steal starlight's colours to make it grey ;-;"
This reverts commit 2b85c81.
* Revert "trying single code block highlight again. why is it blue???"
This reverts commit 35353c7.
* biome
* remove escapeMarkdown
* remove default value formatting
* try add remark-smartypants to package.json
* Revert "remove default value formatting"
This reverts commit 0936b31.
* format markdown as rich text, rather than code. i think,
that this is generally nicer to read. However, this means that the
website text is rendered from the same text as the CLI --help. The
website understands Markdown, but the CLI does not (obviously) so we
have to be careful.
I would suggest that when writing help, the focus should be on
readability within the *console*. This means that while Markdown can be
used, it should be limited to syntax which is unobtrusive in raw text.
Raw text is still the main format which the help text will be rendered
in.
Personally, these would be okay:
- single `*` or `_` for emphasis (with preference for `*`)
- single backticks for inline code
- four space indentation for code blocks
- bullet and numbered lists
Imo, these would *not* be okay, because they appear too jarring
in plain text:
- code blocks with triple backtick fences. this includes any
astro-specific asides and the like.
- link syntax with `[link](https://url)`
- bold when used for subheadings like `**Note**:`
I think this is a good compromise which lets the same text be usable for
both CLI --help and the website's rich text HTML.
* pnpm lock
* reorder sidebar based on (subjective) frequency of use. also
tweak page titles to be in Title Case.
* extract lychee-version.ts and add note of current version to docs
* Apply suggestions from code review
Co-authored-by: Matthias Endler <[email protected]>
* undo 3 blank lines
---------
Co-authored-by: Matthias Endler <[email protected]>1 parent b8e15e9 commit 5eede85
File tree
10 files changed
+204
-606
lines changed- src
- content/docs/guides
10 files changed
+204
-606
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
7 | 16 | | |
| 17 | + | |
8 | 18 | | |
9 | 19 | | |
10 | 20 | | |
| |||
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
41 | | - | |
42 | | - | |
43 | 51 | | |
| 52 | + | |
44 | 53 | | |
45 | 54 | | |
| 55 | + | |
46 | 56 | | |
47 | 57 | | |
48 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments