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

Add inv dev for local testing #2

Merged
merged 2 commits into from
Nov 25, 2023
Merged

Add inv dev for local testing #2

merged 2 commits into from
Nov 25, 2023

Conversation

utensil
Copy link
Contributor

@utensil utensil commented Nov 25, 2023

inv dev will

Serve the blueprint website, rebuild PDF and the website on LaTeX file changes

To test the blueprint locally, if you have a working LaTeX environment, all you need to do is

sudo apt install graphviz libgraphviz-dev
pip uninstall -y leanblueprint
pip install -r blueprint/requirements.txt

to set things up.

Then run inv dev than navigate to http://localhost:8080/ to check the blueprint.

After each edits to the LaTeX, it will automatically rebuild the blueprint, you just need to refresh the web page to see the rendered result.

The caveat is, if you have something wrong in your LaTeX file, and the LaTeX compilation fails, the inv dev might stuck, and you'll need to use X then return to exit LaTeX, fix the LaTeX error, then run inv dev again.

@utensil utensil merged commit bfda256 into main Nov 25, 2023
1 check passed
@utensil utensil deleted the blueprint branch November 25, 2023 17:39
kbuzzard pushed a commit that referenced this pull request Jun 17, 2024
kbuzzard pushed a commit that referenced this pull request Oct 1, 2024
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.

1 participant