Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Publish rustdocs to github pages #562

Merged

Conversation

JoshOrndorff
Copy link
Contributor

This PR adds a CI job that builds and published the rustdocs to github pages. Similar to crates.parity.io, https://paritytech.github.io/frontier/rustdocs/pallet_evm/, or https://purestake.github.io/moonbeam/moonbeam_runtime/index.html

This is useful when working on downstream code to have an API guide quickly available, especially since github will host it for free.

This will need a little bit of help from someone with some permissions on this repo to setup the publishing source as the gh-pages branch. docs

@bkchr bkchr requested review from s3krit and TriplEight August 5, 2021 18:23
.github/workflows/docs.yml Outdated Show resolved Hide resolved
.github/workflows/docs.yml Outdated Show resolved Hide resolved
.github/workflows/docs.yml Outdated Show resolved Hide resolved
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io>
@TriplEight TriplEight self-requested a review August 9, 2021 13:23
@JoshOrndorff
Copy link
Contributor Author

@TriplEight Have you adjusted the repo settings so that the published rustdocs will actually be available at paritytech.github.io/cumulus ? Or if not, could you?

@TriplEight
Copy link
Contributor

Yeah, I did. Not sure though where is it supposed to host the docs from, for now it's set to /root.

with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./target/doc
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if ./target/doc is correct, but let's try. GitHub has no other choice but ./root/ or ./docs and the Action's doc (which should be compatible) says it should be ./public.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the directory where cargo doc builds the docs to. ./public is an example.

@TriplEight TriplEight merged commit 6637471 into paritytech:master Aug 9, 2021
slumber pushed a commit that referenced this pull request Sep 1, 2021
* Publish rustdocs to github pages

* @TriplEight 's suggestions from code review

Co-authored-by: Denis Pisarev <denis.pisarev@parity.io>

Co-authored-by: Denis Pisarev <denis.pisarev@parity.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants