-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs, CLI reference: use
include-markdown
instead of a symling
The main goal is to avoid having a symlink in our source tree. Currently, there is no good way to work with the `jj` repo with `jj` on Windows. Currently `jj` just crashes with symlinks. This is being worked on, see e.g. jj-vcs#2939, but it will always depend on whether Developer Mode is enabled in Windows or whether symlinks are materialized as text files with symlinks. Finally, MkDocs has trouble following symlinks on Windows, so building docs wouldn't work there. Another advantage is that, previously, we were lucky that MkDocs treats `insta` header in `[email protected]` as a Markdown header and follows symlinks at all. Now, we no longer depend on that.
- Loading branch information
Showing
4 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!-- The contents of the CLI reference is auto-generated by a Rust test. | ||
--- If `cargo insta` is installed, you can regenerate the CLI reference with: | ||
--- cargo insta test --accept --workspace -- test_generate | ||
--> | ||
|
||
<!-- TODO/BUG: The include-markdown plugin does not seem to work | ||
--- for offline docs ("offline" plugin for MkDocs Material) | ||
--- Cc: https://github.com/squidfunk/mkdocs-material/issues/6749 | ||
---> | ||
|
||
{% | ||
include-markdown "../cli/tests/[email protected]" | ||
rewrite-relative-urls=false | ||
start="<!-- BEGIN MARKDOWN-->" | ||
%} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters