-
Notifications
You must be signed in to change notification settings - Fork 19
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
Convert Documentation to Vitepress #287
Convert Documentation to Vitepress #287
Conversation
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: '1' | ||
- uses: julia-actions/cache@v2 | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- uses: julia-actions/julia-docdeploy@v1 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Julia | ||
uses: julia-actions/setup-julia@v2 | ||
- name: Pull Julia cache | ||
uses: julia-actions/cache@v2 | ||
- name: Install documentation dependencies | ||
run: julia --project=docs -e 'using Pkg; pkg"dev ."; Pkg.instantiate(); Pkg.precompile(); Pkg.status()' | ||
#- name: Creating new mds from src | ||
- name: Build and deploy docs | ||
uses: julia-actions/julia-docdeploy@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | ||
- run: | | ||
julia --project=docs -e ' | ||
using Documenter: DocMeta, doctest | ||
using QuantumToolbox | ||
DocMeta.setdocmeta!(QuantumToolbox, :DocTestSetup, :(using QuantumToolbox); recursive=true) | ||
doctest(QuantumToolbox)' | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key | ||
GKSwstype: "100" # for Plots.jl plots (if you have them) | ||
JULIA_DEBUG: "Documenter" | ||
DATADEPS_ALWAYS_ACCEPT: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't need to change this part. Better to rebase it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They said to copy their yaml file. I think that the only difference is the doctest (which we are not doing) and some env variables, right?
# ), | ||
format = DocumenterVitepress.MarkdownVitepress( | ||
repo = "https://qutip.github.io/QuantumToolbox.jl", | ||
# deploy_url = "https://qutip.org/QuantumToolbox.jl/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to uncomment this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'm unsure. But using Documenter.jl, we didn't specify the deploy_url, everything was pushing to GitHub, like here. So, I think that the link is done in some other place
Description
This PR should already work. I don't know if there is anything else to do. It seems ok.