Added note on J-Link versions and input char limits.
See MYNEWT-813.
1 file changed
tree: d0a06a16865643f7ebe59d0286a4d35e113b1740
  1. custom-theme/
  2. docs/
  3. extras/
  4. .editorconfig
  5. .gitignore
  6. build.py
  7. deploy.sh
  8. mkdocs.yml
  9. README.md
  10. requirements.txt
  11. serve.py
README.md

The Apache MyNewt site is built using MkDocs.

Setup

Clone the repo:

git clone https://github.com/apache/mynewt-site
cd mynewt-site

Optional: it's a very good idea to use a virtualenv:

virtualenv venv
. venv/bin/activate

Install the requirements:

pip install -r requirements.txt

Submitting updates

  1. Fork the repo.
  2. Work on the develop branch.
  3. Preview your changes using MkDocs.
  4. Submit a pull request.

Releasing a versioned set of MyNewt documentation

When a new release of MyNewt OS and its associated tools occurs, the documentation in the git develop branch of this repository should be in sync with the released version. The following steps will create a documentation branch for the release and make it available as the default documentation from the mynewt-site.

Build

  1. Merge pull requests to develop on github.
  2. While in develop, do git pull --rebase origin develop to pull the latest merged changes.
  3. Switch to the master branch.
    • git checkout master
  4. Create a new stanza in mkdocs.yml to reflect the new version.
    • and update the latest flag, only one release should be marked latest.
    • and update version to match the new branch name.
  5. Commit this change.
  6. Create a branch from master to reflect this new version.
  7. Run: ./build.py

Test

  1. Run: ./serve.py
  2. Visit http://localhost:8000

Deploy

  1. Run: ./deploy.sh
  2. This will leave you on the asf-site branch.
  3. Commit & push the changes.

The runtime-bot github user does a build every ~15 minutes and opens a Pull Request against the asf-site branch if there are any changes. It is recommended that the runtime-bot PRs are used to deploy changes to the site instead of PRs from individual contributors. The runtime-bot PRs give us repeatable builds using known versions of the build tools.

Links to Documentation

For the deployed site a version prefix is added to the URL for each mkdocs page. When developing there is no version prefix. If you want to link from a site page to a documentation page you should prefix the URL with /DOCSLINK/ so that the user is taken to the correct location when browsing in production.

Link Checking

  1. Grab a link checking tool like Integrity
  2. Run: ./build.py --test-build
  3. Run: ./serve.py
  4. point the link checker at http://localhost:8000/