GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - openjavaformat/docs

BranchesTags
Open more actions menu

Latest commit

 

History

72 Commits
72 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
icon
icon
 
 
overrides/.icons/ojf
overrides/.icons/ojf
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
mise.toml
mise.toml
 
 
requirements.txt
requirements.txt
 
 
zensical.toml
zensical.toml
 
 

Repository files navigation

openjavaformat.dev

Sources of https://openjavaformat.dev, the website of open-java-format.

The site is built with Zensical and published on GitHub Pages. Pages live in docs/ as Markdown, and the whole configuration is zensical.toml.

Editing a page

Every page has an Edit this page button. It opens the Markdown file of this repository in GitHub's editor, and GitHub turns the change into a pull request, forking the repository first if needed. The pull request is built in strict mode, so a broken link fails the check instead of reaching the site.

The repository link in the site header deliberately points at the formatter, not here.

Previewing locally

With mise:

mise run serve

Without it:

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
zensical serve

The preview runs on http://localhost:8000 and reloads on save. mise run build runs the same clean, strict build as CI.

The playground

The Playground page formats code in the browser with the formatter compiled to WebAssembly. The module is not in this repository: scripts/fetch-playground.sh downloads it from the GitHub release that ojf_version names, checks it against that release's checksums, and unpacks it next to the page. docs.yml runs it before every build, and mise run serve and mise run build run it through mise run playground. A release without the module is a warning, not an error: the page then says that the playground comes with the next release.

To try a module built locally, point OJF_WASM_ZIP at its zip:

OJF_WASM_ZIP=../open-java-format/open-java-format-wasm/build/distributions/open-java-format-wasm-<version>.zip mise run serve

Publishing

A push to main runs .github/workflows/docs.yml, which builds the site and deploys it to GitHub Pages. There is nothing to do by hand.

The custom domain is set in the repository's Pages settings. There is deliberately no CNAME file: GitHub ignores it when a site is deployed by a workflow.

Upgrading Zensical

The version is pinned in requirements.txt, and Dependabot proposes upgrades. Zensical is still pre-1.0, so read the changelog before merging one.

License

Apache License 2.0, the same as open-java-format.

About

No description, website, or topics provided.

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.