Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation Deployment for code2prompt #56

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ODAncona
Copy link
Collaborator

Hello @mufeedvh,

I redacted a documentation using mdbook. It can be deployed with a GitHub Action on GitHub Pages.

I already tested this on my fork and the result is already available here.

Changes

  • Added a GitHub Action to build and push documentation to the gh-pages branch.

GitHub Pages Setup

Navigate to Repository Settings -> Pages and set the source to gh-pages branch and root directory. The documentation should be available there.

@pwnwriter
Copy link
Contributor

instead of building mdbook every time just fetch the binary from releases or use a package manager instead. Saves a lot of time and unnecessary cpu usages.

uses: actions/checkout@v3

- name: Install mdBook
run: cargo install mdbook
Copy link
Contributor

Choose a reason for hiding this comment

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

Fetch mdbook from releases

        curl -sSL -o /tmp/mdbook.tar.gz https://github.com/rust-lang/mdBook/releases/download/v0.4.36/mdbook-v0.4.36-x86_64-unknown-linux-gnu.tar.gz
          tar -xf /tmp/mdbook.tar.gz -C /usr/local/bin
          mdbook --version

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.

2 participants