GithubHelp home page GithubHelp logo

szakeri / f5-docs-training Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.4 MB

Used for documentation training

Home Page: http://f5-docs-training.readthedocs.io/en/latest/

License: Apache License 2.0

Makefile 27.31% Python 45.12% Batchfile 27.57%

f5-docs-training's Introduction

Welcome to F5's Open Source Documentation Training!

This training demo is intended to teach F5 Networks' software engineers to create documentation for open source projects. For these projects, documentation is created as part of the agile development process. All software engineers are expected to create documentation for the tools/features they are developing.

All docs content is curated by an editor, who ensures compliance with established style guidelines; formats content for reuse; and prepares content for publication in conjunction with product releases.

Note

This training exercise supplements the F5 Open Source Documentation Training presentation. Explanations of the concepts and tools are provided in f5-opensource-docs-training (PPT).

Project Setup

Take the steps below to clone the training repo from GitHub and install the project requirements.

Tip

You may wish to do this in a virtual environment to avoid conflicts with existing versions of the project requirements or their dependencies.

git clone https://github.com/jputrino/f5-docs-training.git
cd f5-docs-training
pip install โ€“r requirements.docs.txt

Check out a new branch to which you will commit your work.

git checkout -b feature.<yourname>

Create New Content

  1. Make a new file that follows the file-naming conventions shown below. Be sure to put it in the docs/includes directory.

    • topic: topic_name-of-feature.rst
    • concept: concept_descriptive-file-name.rst
    • reference: ref_descriptive-file-name.rst
  2. Use the feature template to create a new topic.

    Tip

    • Can be about any subject you like; keep it clean and professional.
    • See the :ref:`examples` for ideas.
  3. Optional: Create additional feature topics to be :ref:`combined into a map <Create a Document Map>`.

  4. Save and commit your work.

    The commands below will add your work to version control and commit it.

    git add --all
    git commit -m "my first feature topic"
  5. Push your work to GitHub.

Important

In a development environment, it's more likely that you'd push your work to your fork of a project, then open a pull request into the parent, or 'upstream', repo when it's ready for review.

Your documentation efforts should fit smoothly into your existing development workflow. Include your code and your documents in the same pull request and tag/assign your editor in addition to your code reviewers.

Create a Document Map

Feature topics are combined into documents (i.e., guides) via maps. In sphinx, the .. include:: directive provides the means for importing content from one file into another. In general, maps should live in a directory higher than the content they will be reusing. So,

if feature topics live in docs/includes, maps should just live in docs/.
  1. Make a new file that follows the file-naming convention and architecture described in the training slides.

Filename Example

"map_feature-documentation-training.rst"

  1. Use the .. include:: directive to pull your content into the map.

Map Example

Salsa
=====

.. include:: includes/concept_overview.rst

.. include:: includes/topic_feature1.rst

.. include:: includes/topic_feature2.rst
  1. Commit your work and push it to GitHub.

View Your Documentation

Option 1: Build locally

When creating documentation, it's a great idea to build the docs locally and review them periodically.

  1. Run the command make html to build the documentation.
  2. View the files in the docs/_build/html directory in your browser.

Option 2: View online

The training project repo is set up to build automatically on Read the Docs whenever content is pushed to any branch.

Go to http://f5-docs-training.readthedocs.io/en/<your-feature-branch> to view your documentation!

.. toctree::
    :hidden:

    self
    docs/sphinx_rst_cheat-sheet
    Example Map 1 <docs/map_example1>
    Example Map 2 <docs/map_example2>
    Example Content <docs/includes/README>

Next Steps

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.