Skip to content

Improve TOC style, docs for CLI tools and directory structure - #259

Merged
urfreespace merged 5 commits into
apache:mainfrom
SignorMercurio:fix/toc
Oct 31, 2022
Merged

urfreespace merged 5 commits into
apache:mainfrom
SignorMercurio:fix/toc

Conversation

@SignorMercurio

Copy link
Copy Markdown
Contributor
  1. Show entire left TOC, and make it collapsible
  2. Fix 404 issue of CLI tools page
  3. Unify behavior of docs for CLI tools
  4. Remove broker-tool and add pulsar-shell
  5. Remove _sidebar.md in each directory and add it in each version's directory
  6. Move $WEBSITE/docsify to $WEBSITE/static/reference so that we can preview it together with the main site with yarn start
  7. Add missing release notes
  8. Move docs for CLI tools to this repo
  9. Minor fixes and rewords

@tisonkun

tisonkun commented Oct 24, 2022 •

Copy link
Copy Markdown
Member

I notice that after #261 merged, static files under $WEBSITE/static/reference aren't released (for example, the .htaccess file). It's weird and should not happen. Otherwise, that we're moving the docsify files here becomes meaningless.

cc @urfreespace any ideas?

UPDATE: Well. I notice that only part of files under $WEBSITE/static are manually moved. Then it's not an issue for this patch.

@urfreespace

Copy link
Copy Markdown
Member

I notice that after #261 merged, static files under $WEBSITE/static/reference aren't released (for example, the .htaccess file). It's weird and should not happen. Otherwise, that we're moving the docsify files here becomes meaningless.

cc @urfreespace any ideas?

UPDATE: Well. I notice that only part of files under $WEBSITE/static are manually moved. Then it's not an issue for this patch.

fixed with #263

@urfreespace
urfreespace self-requested a review October 25, 2022 01:06
@@ -0,0 +1,9 @@
---

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to make changes on these files (under release-notes/versioned.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are newly added, not modified. They are added because they are missing.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I also have no idea why these docs are missing. I added these to avoid 404 links in the Release Notes page.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So where do you add these files from?

@tisonkun tisonkun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think one of the object we make this change is simplifying the build stage. Comments inline.

Comment thread site2/tools/build-site.sh
Comment on lines 54 to 55
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"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, thanks for @tisonkun, could you pls do a test with this code from @tisonkun's suggestion? @SignorMercurio

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I'll have a try and update the script.

@Anonymitaet

Copy link
Copy Markdown
Member

LGTM from the requirement side.

@tisonkun

Copy link
Copy Markdown
Member

I just noticed that we should still generate CLI references for each major release. Is it correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants