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

CI: clean up documentation and generate it with GitHub Actions #137

Merged
merged 4 commits into from
Jan 8, 2024

Conversation

ken-lauer
Copy link
Contributor

Background

I've been looking through the documentation a bit on Genesis and found that here are multiple copies of the documentation included in the repository:

  1. /MANUAL.md and /MANUAL* at the top-level
  2. /manual/MANUAL.md and others under /manual
  3. An old PDF version of the manual (/manual/Genesis-Manual.pdf) and its source LaTeX file
  4. A newer PDF version of the manual /manual/Manual.pdf which is generated with pandoc using /manual/*.md

Changes

Assuming my understanding is correct, I've taken the steps in this PR to:

  1. Clean up the generated files from source control
  2. Remove old/outdated manuals
  3. Auto-generate manuals for each commit (or tagged release) and upload them as assets to GitHub

GitHub Actions

Note - you will have to enable a setting in the repository to allow for the deployment process to work correctly. It's as simple as going to the repository settings and selecting "GitHub Actions" as the source.
Screenshot 2024-01-05 at 11 52 41 AM

Testing / sample

I ran the included GitHub Actions on my own fork and here are the results:

  1. Page: https://ken-lauer.github.io/Genesis-1.3-Version4
  2. PDF download: https://github.com/ken-lauer/Genesis-1.3-Version4/actions/runs/7425965953/artifacts/1150738734

Future

We could make a nicer webpage for Genesis, if you'd like. Something along the lines of what we have for https://slaclab.github.io/lume-genesis/ for example.

@ChristopherMayes
Copy link
Contributor

ChristopherMayes commented Jan 6, 2024

Here's an example for how Bmad.jl lattices are looking at the moment:

https://github.com/bmad-sim/AcceleratorLattice.jl/blob/abec38f2e026ae7c74282d96bff5c572b9f8dfe8/test/lat1.jl#L4

@svenreiche svenreiche merged commit 53d4bd4 into svenreiche:master Jan 8, 2024
@ken-lauer ken-lauer deleted the ci_docs branch January 8, 2024 16:54
@ken-lauer
Copy link
Contributor Author

The docs are now published here:
https://svenreiche.github.io/Genesis-1.3-Version4/

@ChristopherMayes
Copy link
Contributor

@svenreiche What do you think about us automatically making an mkdocs site like https://slaclab.github.io/lume-genesis/ (mentioned above)?

@svenreiche
Copy link
Owner

svenreiche commented Jan 9, 2024 via email

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.

None yet

3 participants