Code Monkey home page Code Monkey logo

mynewt-documentation's Introduction

Apache Mynewt Documentation

This is the project documentation for the Apache Mynewt project. It is built using Sphinx.

Each component of Mynewt contains its own specific documentation in its repo under docs. At build time these are combined to create the full document set for publication.

The Apache Mynewt source code also contains inline comments in Doxygen format to document its APIs.

Sphinx use reStructuredText. http://www.sphinx-doc.org/en/stable/rest.html.

Embedding Doxygen generated source documentation is through the Breathe bridge. http://breathe.readthedocs.io/en/latest/. This bridge embeds source documentation using Sphinx's C domain. For example: .. doxygenfile:: full/include/console/console.h

Documents can then refer to code elements using the C domain syntax: http://www.sphinx-doc.org/en/stable/domains.html#cross-referencing-c-constructs For example: :c:func:`console_read()` or :c:data:`console_input`.

Linking to other files should be relative for ease of deployment and multi-version support. For example :doc:`../../newt/install/newt_mac`.

make clean && make docs && (cd _build/html && python -m SimpleHTTPServer 8080)

Note: This build toolchain is known to work on MacOS 10.11.

$ brew --version
Homebrew 1.1.7
  • python
$ python --version
Python 2.7.10
$ pip --version
pip 9.0.1 from /Library/Python/2.7/site-packages (python 2.7)
$ git clone https://github.com/sphinx-doc/sphinx.git sphinx

$ cd sphinx && sudo -E python setup.py install && cd ..

$ git clone https://github.com/michaeljones/breathe.git breathe

$ cd breathe && sudo -E python setup.py install && cd ..

$ brew install doxygen

$ sudo pip install recommonmark

Most Linux distributions provide necessary packages in their repositories.

Ubuntu/Debian .. code-block:: bash

sudo apt-get install doxygen python3-breathe python3-recommonmark

Fedora .. code-block:: bash

sudo dnf install doxygen python3-breathe python3-recommonmark

NOTE: These instructions assume that your workspace has all the mynewt repos cloned under the same parent directory.

  • Ensure that all changes are merged into master and that the master branch is checked out.
  • Repeat for any mynewt code repo that has documentation changes.
  • Follow the steps at Site Docs to release the docs.

When the master/latest documentation is deemed representative of a Mynewt version, it is time to create a versioned set.

  • Make sure all your mynewt-* repos are up to date and that all changes are merged and committed.
  • Add the new version to mynewt-documentation/docs/themes/mynewt/versions.html
    • Also add the new version to any existing archived set.
    • i.e mynewt-documentation/versions/*/mynewt-documentation/docs/themes/mynewt/versions.html
    • Make sure the 'selected' flag is correct for the archived version
  • Make a versions/vX_Y_Z directory
  • Copy mynewt-documentation/* (except versions!) into versions/vX_Y_Z/mynewt-documentation
  • Copy the mynewt-core repo into versions/vX_Y_Z/mynewt-core
  • Repeat for other mynewt-* repos with doxygen docs and a /docs folder
  • Update the version fields in
    • docs/conf.py
    • and versions/vX_Y_Z/mynewt-documentation/docs/conf.py
  • Add a warning that this is not the most recent documentation to:
    • mynewt-documentation/versions/vX_Y_Z/mynewt-documentation/docs/themes/mynewt/layout.html
    • see an existing older version for example

To preview the changes:

cd mynewt-documentation/versions/vX_Y_Z/mynewt-documentation
make clean && make docs && (cd _build/html && python -m SimpleHTTPServer 8080)

mynewt-documentation's People

Contributors

dlee-rt avatar utzig avatar aditihilbert avatar ritikakapade avatar sjanc avatar kkopyscinski avatar caspermeijn avatar rymanluk avatar jacobrosenthal avatar vrahane avatar mkiiskila avatar ccollins476ad avatar artob avatar mkasenberg avatar micolous avatar mikevoyt avatar ncasaril avatar ynezz avatar rafacouto avatar bethjonesbluesky avatar klener89 avatar supperthomas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.