Skip to content

Fix reference page 404 issue - #249

Merged
urfreespace merged 1 commit into
apache:mainfrom
SignorMercurio:fix/reference
Oct 12, 2022
Merged

urfreespace merged 1 commit into
apache:mainfrom
SignorMercurio:fix/reference

Conversation

@SignorMercurio

@SignorMercurio SignorMercurio commented Oct 11, 2022 •

Copy link
Copy Markdown
Contributor

Fix apache/pulsar#17996.

Also change versions like 2.6.0 to 2.6.x, etc. (See #214)

@tisonkun

Copy link
Copy Markdown
Member

@SignorMercurio how can I verify this change locally?

@SignorMercurio

Copy link
Copy Markdown
Contributor Author

@tisonkun Simply go to docsify directory and run docsify serve.

@tisonkun

tisonkun commented Oct 11, 2022 •

Copy link
Copy Markdown
Member

@SignorMercurio this command verifies only the docsify site itself. How can I ensure that it's properly integrated with the Pulsar site? Said you state that 404 issues are resolved, it's actually about the integration instead of docsify standalone.

Even if without this patch, docsify serve properly serves the site locally.

@SignorMercurio

SignorMercurio commented Oct 12, 2022 •

Copy link
Copy Markdown
Contributor Author

@tisonkun I haven't figured out an elegant way to do this, but you may try starting a local HTTP server like this:

  1. Create a temporary directory website:
$ mkdir /tmp/website
  1. Copy the docsify directory to website/reference:
$ cd site2/website-next
$ cp -r docsify /tmp/website/reference
  1. Start a local HTTP server under website:
$ cd /tmp/website
$ python3 -m http.server
  1. Access http://localhost:8000/reference and you should see the new reference page.

@tisonkun

tisonkun commented Oct 12, 2022 •

Copy link
Copy Markdown
Member

@SignorMercurio This still tests only the docsify site instead of the integration with Pulsar website - you don't start a local server serving the doc site. And what is to be tested is jumping from the doc site to the reference pages correctly.

Oh. I get your point. Let me test it.

@tisonkun

This comment was marked as outdated.

@tisonkun

Copy link
Copy Markdown
Member

Verified locally. Although not a fully integration, we can give it a try.

@tisonkun

Copy link
Copy Markdown
Member

@tisonkun

Copy link
Copy Markdown
Member

Found:

# Generate document for command line tools.
"$TOOLS_DIR"/pulsar-admin-doc-gen.sh "$WEBSITE_DIR" "$VERSION"
"$TOOLS_DIR"/pulsar-client-doc-gen.sh "$WEBSITE_DIR" "$VERSION"
"$TOOLS_DIR"/pulsar-perf-doc-gen.sh "$WEBSITE_DIR" "$VERSION"
"$TOOLS_DIR"/pulsar-doc-gen.sh "$WEBSITE_DIR" "$VERSION"
"$TOOLS_DIR"/pulsar-config-doc-gen.sh "$WEBSITE_DIR" "$VERSION"
cd "$WEBSITE_DIR"

@urfreespace
urfreespace merged commit dde75ee into apache:main Oct 12, 2022
@SignorMercurio

Copy link
Copy Markdown
Contributor Author

There're other 404 pages, please check whether they're generated on the fly?

Yes, they are.

@SignorMercurio
SignorMercurio deleted the fix/reference branch October 12, 2022 08:14
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.

[Doc] New references pages 404

3 participants