Skip to content

Commit

Permalink
WIP 332 Add new publication docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Aug 14, 2024
1 parent c3da561 commit 3eea4e6
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ image:https://github.com/aim42/htmlSanityCheck/actions/workflows/gradle-build.ym
image:https://sonarcloud.io/api/project_badges/measure?project=aim42_htmlSanityCheck&metric=alert_status[alt='Quality Gate Status']
image:https://jitpack.io/v/org.aim42.htmlSanityCheck/htmlSanityCheck.svg[alt='JitPack Build']
image:https://img.shields.io/github/issues/aim42/htmlSanityCheck.svg[link="https://github.com/aim42/htmlSanityCheck/issues"]
image:https://api.netlify.com/api/v1/badges/eea7288d-13ca-4268-b08d-f22e51173734/deploy-status[alt="Netlify Status",link=https://hsc-aim42.netlify.app/]


[[sec:usage,usage]]
Expand Down
29 changes: 27 additions & 2 deletions src/docs/development/documentation-build.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:filename: development/documentation-build.adoc
:jbake-title: Documentation Build
:jbake-title: Building and Publishing HSC Documentation
:jbake-type: page
:jbake-status: published
:jbake-menu: development
Expand All @@ -9,6 +9,8 @@
The documentation is maintained using the awesome
https://github.com/docToolchain/docToolchain[docToolchain], created by https://rdmueller.github.io/[@rdmueller].

=== Local Documentation Build

Build the complete documentation by executing the following build script:

[source,bash]
Expand All @@ -22,4 +24,27 @@ Afterwards, open
// :doc-base: ../../../public
ifdef::jbake-type[:doc-base: ..]
* xref:{doc-base}/index.adoc[`public/index.html`] to check the results, or
* The xref:{doc-base}/report/report.adoc[HSC report] to check the quality.
* The xref:{doc-base}/report/report.adoc[HSC report] (`public/report/report.html`) to check the quality.

=== Publishing the Documentation

A https://github.com/aim42/htmlSanityCheck/actions/workflows/gh-pages.yml[GitHub Action] builds the documentation on each push (or pull request).

Default::
For each branch,
the GH action publishes the resulting documentation to https://www.netlify.com/[Netlify]
(check the output of the GH Action for the URL).

Production::
To publish to https://aim42.github.io/htmlSanityCheck[GitHub Pages],
you have to manually execute the https://github.com/aim42/htmlSanityCheck/actions/workflows/gh-pages.yml[GitHub Action]
and check the box to publish to GH Pages:
+
image::gh-pages-action-publish-screenshot.png[]
+
[CAUTION]
====
In the future we might restrict publishing to particular branches
to ensure the documentation aligns with certain states of development,
e.g., `main` branch only.
====
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3eea4e6

Please sign in to comment.