-
Notifications
You must be signed in to change notification settings - Fork 6
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 #5 from evolvedbinary/develop2
Further small improvements
- Loading branch information
Showing
9 changed files
with
165 additions
and
16 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
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,42 @@ | ||
# cityEHR Documentation | ||
[![Build Status](https://github.com/cityehr/cityehr-documentation/actions/workflows/ci.yml/badge.svg)](https://github.com/cityehr/cityehr-documentation/actions/workflows/ci.yml) | ||
[![License](https://img.shields.io/badge/license-CC%20BY%20NC%20SA%204.0-blue.svg)](https://creativecommons.org/licenses/by-nc-sa/4.0/) | ||
|
||
This respository contains the documentation for cityEHR. The documentation is authored in [LwDITA](https://dita-lang.org/lwdita/capabilities/capabilities) XDITA format. | ||
|
||
When the source code of a document is updated in GitHub, we use GitHub Actions to automatically render a new HTML and PDF version of the documentation. | ||
|
||
|
||
## Documents | ||
|
||
| Title | Source Location | Renderings | | ||
|---|---|---| | ||
| Quick Start Guide | [cityehr-quick-start-guide/src/main/lwdita/quickstart-guide-modular](cityehr-quick-start-guide/src/main/lwdita/quickstart-guide-modular) | [HTML](https://cityehr.github.io/cityehr-documentation/) / [PDF](https://cityehr.github.io/cityehr-documentation/quickstart-guide.pdf) | | ||
|
||
|
||
## Developing the Documentation | ||
|
||
If you wish to build the documentation on your own computer, you will need the following tools installed: | ||
|
||
* [Git](https://git-scm.com/) | ||
* [Java JDK](https://bell-sw.com/pages/downloads/) version 8 (or newer) | ||
* [Apache Maven](https://maven.apache.org/) 3.6 (or newer) | ||
|
||
1. If you have not already done so, clone the respoistory: | ||
```bash | ||
$ git clone https://github.com/cityehr/cityehr-documentation.git | ||
``` | ||
|
||
2. Enter the clone folder: | ||
```bash | ||
$ cd cityehr-documentation | ||
``` | ||
|
||
3. Run the following command to have Maven (mvn) render a new PDF and HTML version of the documentation: | ||
```bash | ||
$ mvn clean package -Pquick-start-guide-website | ||
``` | ||
|
||
You can find the rendered versions of the documentation in the `target/` sub-folder of each module. For example: | ||
* `cityehr-quick-start-guide/target/quickstart-guide.pdf` | ||
* `cityehr-quick-start-guide/target/website/index.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
Binary file added
BIN
+21.9 KB
...-quick-start-guide/src/main/lwdita/quickstart-guide-modular/images/by-nc-sa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
38 changes: 38 additions & 0 deletions
38
cityehr-quick-start-guide/src/test/xspec/create-topic-html.xspec
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,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<x:description | ||
xmlns:x="http://www.jenitennison.com/xslt/xspec" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:htop="http://cityehr/html/topic" | ||
stylesheet="../../main/xslt/create-topic-html.xslt"> | ||
|
||
<x:param name="petal-api-url" as="xs:string">https://petal.evolvedbinary.com</x:param> | ||
<x:param name="petal-github-org-name" as="xs:string">evolvedbinary</x:param> | ||
<x:param name="petal-github-repo-name" as="xs:string">cityehr-documentation</x:param> | ||
<x:param name="petal-github-branch" as="xs:string">develop</x:param> | ||
<x:param name="petal-referrer-base-url" as="xs:string">https://evolvedbinary.github.io/cityehr-documentation</x:param> | ||
|
||
<x:scenario label="Scenario for testing the petal-edit-url function with source file from local filesytem"> | ||
<x:call function="htop:petal-edit-url"> | ||
<x:param name="petal-source-file-uri" as="xs:string">file:/Users/aretter/code/evolvedbinary/customers/cityehr/cityehr-documentation/cityehr-quick-start-guide/src/main/lwdita/quickstart-guide-modular/verify-install.dita</x:param> | ||
<x:param name="petal-api-url" as="xs:string">https://petal.evolvedbinary.com</x:param> | ||
<x:param name="petal-github-org-name" as="xs:string">evolvedbinary</x:param> | ||
<x:param name="petal-github-repo-name" as="xs:string">cityehr-documentation</x:param> | ||
<x:param name="petal-github-branch" as="xs:string">develop</x:param> | ||
<x:param name="petal-referrer-base-url" as="xs:string">https://evolvedbinary.github.io/cityehr-documentation</x:param> | ||
</x:call> | ||
<x:expect label="Correct Petal Edit URL" select="'https://petal.evolvedbinary.com?ghrepo=evolvedbinary/cityehr-documentation&source=cityehr-quick-start-guide/src/main/lwdita/quickstart-guide-modular/verify-install.dita&branch=develop&referer=https://evolvedbinary.github.io/cityehr-documentation/verify-install.html'"/> | ||
</x:scenario> | ||
|
||
<x:scenario label="Scenario for testing the petal-edit-url function with source file in GitHub Action container"> | ||
<x:call function="htop:petal-edit-url"> | ||
<x:param name="petal-source-file-uri" as="xs:string">file:/home/runner/work/cityehr-documentation/cityehr-documentation/cityehr-quick-start-guide/src/main/lwdita/quickstart-guide-modular/verify-install.dita</x:param> | ||
<x:param name="petal-api-url" as="xs:string">https://petal.evolvedbinary.com</x:param> | ||
<x:param name="petal-github-org-name" as="xs:string">evolvedbinary</x:param> | ||
<x:param name="petal-github-repo-name" as="xs:string">cityehr-documentation</x:param> | ||
<x:param name="petal-github-branch" as="xs:string">develop</x:param> | ||
<x:param name="petal-referrer-base-url" as="xs:string">https://evolvedbinary.github.io/cityehr-documentation</x:param> | ||
</x:call> | ||
<x:expect label="Correct Petal Edit URL" select="'https://petal.evolvedbinary.com?ghrepo=evolvedbinary/cityehr-documentation&source=cityehr-quick-start-guide/src/main/lwdita/quickstart-guide-modular/verify-install.dita&branch=develop&referer=https://evolvedbinary.github.io/cityehr-documentation/verify-install.html'"/> | ||
</x:scenario> | ||
|
||
</x:description> |