forked from cf-convention/cf-conventions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cf-convention#554 from cofinoa/main
Updating build and publish
- Loading branch information
Showing
6 changed files
with
74 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<body> | ||
<h1>CF Conventions and Conformance</h1> | ||
<h2>Latest</h2> | ||
<h3>CF Conventions</h3> | ||
<ul> | ||
<li><a href="cf-conventions.html">HTML</a></li> | ||
<li><a href="cf-conventions.pdf" >PDF </a></li> | ||
</ul> | ||
<h3>Conformance</h3> | ||
<ul> | ||
<li><a href="conformance.html">HTML</a></li> | ||
<li><a href="conformance.pdf" >PDF </a></li> | ||
</ul> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,14 @@ Their implementation in GitHub is described in this repository's [CONTRIBUTING.m | |
|
||
# Building the HTML | ||
|
||
To convert the AsciiDoc files into the resulting HTML file: | ||
|
||
1. Ensure you have [Ruby](https://www.ruby-lang.org/) installed (e.g. `sudo apt install ruby`) | ||
1. Ensure you have a recent version of [Asciidoctor](https://asciidoctor.org/) installed (e.g. `gem install asciidoctor`) | ||
1. Ensure you have [Make](https://www.gnu.org/software/make/) installed (e.g. `sudo apt install make`) | ||
1. Get hold of the AsciiDoc files in this repo (e.g. `git clone [email protected]:cf-convention/cf-conventions.git`) | ||
1. There are different options to make the conventions and conformance documents: | ||
- (All, the default) HTML and PDF conventions and conformance documents: | ||
The following steps outline how to build the CF Conventions documentation into HTML and/or PDF format using AsciiDoc: | ||
|
||
1. Ensure you have [Ruby](https://www.ruby-lang.org/) installed. (e.g. `sudo apt install ruby`) | ||
2. Ensure you have a recent version of [Asciidoctor](https://asciidoctor.org/) installed (e.g. `gem install asciidoctor`) | ||
3. Ensure you have [Make](https://www.gnu.org/software/make/) installed. (e.g. `sudo apt install make`) | ||
4. Clone the repository containing the AsciiDoc files. (e.g. `git clone [email protected]:cf-convention/cf-conventions.git`) | ||
5. There are different options to make the conventions and conformance documents: | ||
- (Default: Build all formats) HTML and PDF conventions and conformance documents: | ||
`make` or `make all` | ||
- HTML conventions and conformance documents: | ||
`make html` | ||
|
@@ -29,20 +29,22 @@ To convert the AsciiDoc files into the resulting HTML file: | |
`make conventions` | ||
- Conformance documents (HTML and PDF): | ||
`make conformance` | ||
- Delete documents and build directories: | ||
- Remove built documents and clean build directories: | ||
`make clean` | ||
- Build with FINAL tag and date stamp (remember to update version in `version.adoc` file ): | ||
- Build with the FINAL tag and a date stamp. Ensure you have manually updated the version in the `version.adoc` file before running this command: | ||
`make CF_FINAL=True` | ||
|
||
Both HTML documents are build with images embeded into the `.html` file. | ||
Both HTML documents will have images embedded within `.html` file. | ||
|
||
The build documents will be rendered into local paths: | ||
- `conventions_build/cf-conventions.html` | ||
- `conventions_build/cf-conventions.pdf` | ||
- `conformance_build/conformance.html` | ||
- `conformance_build/conformance.pdf` | ||
The built documents will be rendered in the `build` directory with the resulting paths: | ||
- `build/cf-conventions.html` | ||
- `build/cf-conventions.pdf` | ||
- `build/conformance.html` | ||
- `build/conformance.pdf` | ||
|
||
See the [GitHub help](https://help.github.com/) pages and plethora of other git/GitHub guides for more details on how to work with repos, forks, pull requests, etc. | ||
Ensure the built documents meet your requirements before publishing. | ||
|
||
See the [GitHub help](https://help.github.com/) pages and many other git/GitHub guides for more details on how to work with repos, forks, pull requests, etc. | ||
|
||
## Latest Spec Build | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/usr/bin/env Rscript | ||
# R version: >= 4.0.0 | ||
# r-svglite version: >= 2.0.0 | ||
library(svglite) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/usr/bin/env Rscript | ||
# R version: >= 4.0.0 | ||
# r-svglite version: >= 2.0.0 | ||
library(svglite) | ||
|