Skip to content

Commit

Permalink
fix typos, update language, move build badge to the top, update links…
Browse files Browse the repository at this point in the history
…, moar #259
  • Loading branch information
mrjones-plip committed Aug 7, 2020
1 parent 96d8094 commit c09e253
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Documentation for the Community Health Tookit
# Documentation for the Community Health Toolkit

[![CHT Documentation Site Build](https://github.com/medic/cht-docs/workflows/CHT%20Documentation%20Site%20Build/badge.svg)](https://github.com/medic/cht-docs/actions)

## About

This repo contains documentation for the Community Health Toolkit (CHT), and how to build digital health applications with [CHT Core](https://github.com/medic/cht-core).

The documentation is built using Markdown pages, which can be converted into a navigatable website using a static-site-generator. The Hugo static-site-generator is being used with the Docsy theme. To maintain portability content should be written in plain Markdown with limited use of HTML, custom shortcodes, and modifications to the theme. Contributions should align with the [documentation style guide](https://docs.communityhealthtoolkit.org/contribute/docs/style-guide/).
The documentation is built using Markdown pages, which can be converted into a navigable website using a static-site-generator. The Hugo static-site-generator is being used with the [Docsy theme](https://themes.gohugo.io/docsy/). To maintain portability, content should be written in plain Markdown with limited use of HTML, custom shortcodes, and modifications to the theme. Contributions should align with the [documentation style guide](https://docs.communityhealthtoolkit.org/contribute/docs/style-guide/).

## Installing Hugo

Expand All @@ -16,12 +18,11 @@ To install, follow the [installation instructions for your Operating System](htt

1. Get local copies of the project submodules so you can build and run your site locally:
- `git submodule update --init --recursive`

2. Build your site:
1. Build your site:
- `hugo server`
- If there are any errors, check that you have the latest version of Hugo, and are using the extended version.

3. Preview your site in your browser at: http://localhost:1313/
1. Preview your site in your browser at: http://localhost:1313/
1. As you make changes to the site, your browser will automatically reload your local dev site so you can easily and quickly see your changes.

## Optional Link Checking

Expand All @@ -32,12 +33,10 @@ We validate that all links on the docs site work (do not 404) using a tool calle
- Ensure you've run `hugo server` so your local docs instance is reachable at http://localhost:1313/
- Test the links with the [`muffet.sh`](https://github.com/medic/cht-docs/blob/master/.github/scripts/muffet.sh) script. If you're in the root of this repo, that'd be: `./.github/scripts/muffet.sh`

It should take about 60 seconds and then if Muffet returns no output, you have no broken links, congrats!
It should take about 60 seconds depending on your Internet connection. If Muffet returns no output, you have no broken links, congrats!

_Note_: The `muffet.sh` script here is the identical script we run on GitHub. If you simply run `muffet http://localhost:1313` you will hit GitHub's rate limiting and get lots of [429's](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429). Our script intentionally reduces concurrency and excludes some repetitive GitHub URLs.

## Continuous Deployment

All changes to `master` branch run a [GitHub action](.github/workflows/ci.yml) to deploy the documentation site: [docs.communityhealthtoolkit.org](https://docs.communityhealthtoolkit.org)

![CHT Documentation Site Build](https://github.com/medic/cht-docs/workflows/CHT%20Documentation%20Site%20Build/badge.svg)
All changes to `master` branch run a [GitHub action](.github/workflows/ci.yml) to first check for any broken links (per above) and then deploy to the documentation site: [docs.communityhealthtoolkit.org](https://docs.communityhealthtoolkit.org)

0 comments on commit c09e253

Please sign in to comment.