Website publishing procedure

We have moved both the Valueflows hosted doc and the repo to codebergarrow-up-right. This is the procedure to get any changes made to the Valueflows doc at valueflows/valueflows to appear at https://valueflo.ws, served from valueflows/pages.

Directory structure in the valueflows repo, starting with the mkdocs directory

vf-codeberg

Codeberg

The generated html is pushed to the codeberg valueflows publishing repo at https://codeberg.org/valueflows/pages.

Codeberg has open registration. Please ask if you want to be added to the valueflows organization there.

Procedure

This assumes that Material for Mkdocsarrow-up-right is installed locally, and codeberg valueflows and pages are both cloned locally.

  1. In the valueflows git pull, branch and make the needed changes.

  2. In a terminal navigate to the mkdocs directory.

  3. Run mkdocs serve and view on localhost:8000.

  4. Fix and view as needed. Ctrl-C to shut down the localhost.

  5. Run mkdocs build. This populates the site directory.

  6. Commit locally, and push all changes to valueflows, create PR.

  7. Re-generate pyLODE if needed, python3 pylode ../valueflows/mkdocs/docs/assets/all_vf-for-pylode.TTL -o all_vf.html, must have pylode locally. Bring the pieces into the Formatted Specification page. The center part needs to replace code> with pycode>. The TOC on the right needs to have new title: Alphabetical Links, and add class="toc-link" to each link. And check for other issues, this list not tested. Do not change other parts, just carefully cut out the center and right parts and put into all_vf.md.

  8. Review, fix as needed using the above steps, merge.

  9. Create tag and release if needed.

When you are ready to put all merged changes to the live site:

  1. In a terminal navigate to the local pages directory.

  2. Create a branch.

  3. Locally, copy everything in the valueflows site directory to the pages directory.

  4. Commit the changes.

  5. Push to codeberg, create a pull request (https://codeberg.org/valueflows/pages/pulls).

  6. In codeberg, review the changes, merge to main.

  7. Test on the https://valueflo.ws site.

Last updated

Was this helpful?