Repository navigation
Improve TOC style, docs for CLI tools and directory structure - #259
Conversation
|
I notice that after #261 merged, static files under cc @urfreespace any ideas? UPDATE: Well. I notice that only part of files under |
fixed with #263 |
Signed-off-by: Mercurio <[email protected]>
Signed-off-by: Mercurio <[email protected]>
79d68fd to
1c704e3
Compare
| @@ -0,0 +1,9 @@ | |||
| --- | |||
There was a problem hiding this comment.
Why do we need to make changes on these files (under release-notes/versioned.
There was a problem hiding this comment.
These are newly added, not modified. They are added because they are missing.
There was a problem hiding this comment.
Is their missing related to this patch? I don't know why they're missed in the first place and why we couple these changes in the patch to resolve the location of reference docs.
There was a problem hiding this comment.
No, I also have no idea why these docs are missing. I added these to avoid 404 links in the Release Notes page.
There was a problem hiding this comment.
So where do you add these files from?
tisonkun
left a comment
There was a problem hiding this comment.
I think one of the object we make this change is simplifying the build stage. Comments inline.
| CONTENT_DIR="$GEN_SITE_DIR"/content | ||
|
|
||
| rm -rf "$CONTENT_DIR" | ||
| mkdir -p "$CONTENT_DIR" | ||
| mkdir -p "$CONTENT_DIR"/reference | ||
| rsync -a ./docsify/ "$CONTENT_DIR"/reference | ||
| rm -rf "$CONTENT_DIR" && mkdir -p "$CONTENT_DIR" | ||
| cp -R static/reference "$CONTENT_DIR" | ||
| rsync -a ./build/ "$CONTENT_DIR" |
There was a problem hiding this comment.
cp -R seems work differently to the standard on the CI env. Use rsync -a correctly stably copy all files (including hidden files) recursively.
Besides, since we move references under the static folder, there's no need to special handle them.
Thus, this code snippet can be written as:
rm -rf "$CONTENT_DIR"
mkdir -p "$CONTENT_DIR"
rsync -a ./build/ "$CONTENT_DIR"@urfreespace @SignorMercurio please check.
There was a problem hiding this comment.
yes, thanks for @tisonkun, could you pls do a test with this code from @tisonkun's suggestion? @SignorMercurio
There was a problem hiding this comment.
Sure, I'll have a try and update the script.
|
LGTM from the requirement side. |
Signed-off-by: Mercurio <[email protected]>
Signed-off-by: Mercurio <[email protected]>
|
I just noticed that we should still generate CLI references for each major release. Is it correct? |
_sidebar.mdin each directory and add it in each version's directory$WEBSITE/docsifyto$WEBSITE/static/referenceso that we can preview it together with the main site withyarn start