Giter VIP home page Giter VIP logo

docs's Introduction

Working with the docs

The documentation is delivered via a Read The Docs (RTD) website.

TF uses the Linux Foundation's implementation for publishing to RTD, which is documented here.

I have not formally documented the usage requirements other than the commands to run to build and lint the docs. In general, the build process uses the sphinx-build command behind the scenes. Please consider creating a pull request to improve this README if/when you start contributing to this documentation. Thanks...

Installing required software

  1. Install Sphinx-build https://www.sphinx-doc.org/en/master/usage/installation.html
  2. Install Tox https://tox.readthedocs.io/en/latest/install.html

Building the docs

Build the docs static site.

$ tox -e docs

This command will populate a static website under the folder _build/html.

Running the linter

In addition to building, we can and should run a linter against the content.

$ tox -e docs-linkcheck

Building and running the linter

To build documentation and execute link checking in one run.

$ tox -e docs-all

Building documentation locally

Local building will establish re-usable pip cache under tox workdir (.tox/).

$ tox -e docs-dev

Additionally you can pass additional flags to sphinx-build i.e speed up building process with -j <n> flag.

$ tox -e docs-dev -- -j 4

Troubleshooting

In case tox will report errors like module not found when that module was previously used then remove .tox folder and run tox again.

docs's People

Contributors

abirami52 avatar andrey-mp avatar cloudops-wstevens avatar darien-hirotsu avatar dysproz avatar fayaxa avatar marekchwal avatar ndavey avatar nishitasikka1995 avatar ospanovalen avatar pjrusak avatar qblivion avatar swill avatar szymonv avatar tikitavi avatar vmbrasseur avatar wrathwolf avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

[TFB-1426] Document the resources needed for TF

From this thread on dev@:

I think it is important for the resource requirements to be documented somewhere.

In my testing (using CentOS 7.4 and 7.6) I have found the minimum requirements to be as follows. Not sure this is official, but I was running into resource constraints with anything lower than this amount of resources.

  • Kernel: 3.10.0-862.14.4

  • CPU: 8 vCPU

  • RAM: 32GB

  • Root Drive: 60GB

We should document this somewhere (or multiple somewheres).

[TFB-1404] Add more of a summary to the Governance README

Migrated from GitHub Issue: #26

I'm creating a summary of this for someone who asked, so I may as well add it into the repo to help everyone.

The summary will:

  • Give brief definitions of each group in the community, w/references to the gov docs
  • Give brief definitions of each group in the governance, w/references to the gov docs
  • Add an acronym reference
  • Link to the Election Mechanics in the wiki

[TFB-1455] Document how to create a TF bug report

It's s a Jira ticket about creating Jira tickets. It's a meta-Jira-ticket! Anyway, we're going to have opinions on how people do this, so we need to document them. This should be linked in a few places (contributor guide, website at the very least).

Items to cover:

  • How to log in
  • The required fields for a bug report
  • Content expectations for each of the required fields
  • How to follow up on a bug report you've opened (add comments to the ticket, email a ticket link to the dev@ list)

[TFB-1399] Document the Gerrit gates

Gerrit uses 'gates' (tests) to determine whether a patch can be merged. As of today (2019-05-09), the gates are as follows:

Finally debugged the issue and now commits are blocked by requiring an "Issue-ID: " in the commit body

Eventually the gates may be different for each project, but this is a good start and we should start documenting this now.

Current gates that exist in Gerrit:

  • Ticket required

[TFB-1526] Update Manual CLA doc to reflect new Gerrit UI

Someone updated review.opencontrail.org to the latest Gerrit. That means that you can't find the access groups under People anymore, since that link doesn't exist. Instead, go to Browse & Groups. The docs need to be updated to reflect this change.

[TFB-1549] The minimum viable product for having useful docs from the point of view of a contributor.

With our limited resources, we need to focus our resources on the minimal viable product (MVP) for docs. In the 2020-01-09 docs meeting: https://wiki.tungsten.io/display/TUN/2020-01-09+Docs+Project+Meeting we came up with a first pass at a list of things we'll need for that MVP.

Please note a few things:

We're focusing on the point of view of a contributor.                  
Because the docs repo is the only one that's fully moved to the git/gerrit/jira workflow, we'll use it as the target for all of our work.
Because of that, then, we'll be writing for a tech writer audience. Specifically, the Juniper Networks tech writers, since they have the most information about and experience with the product. These people are intelligent and accomplished but don\u0027t use git or reStructuredText for their jobs.

So, our audience are tech writers who don't know git, gerrit, or rST. The documents we create therefore will be a bit lower level than if we were targeting only developers, but even developers will benefit from them. For instance, this level of documentation would have been invaluable for our Google Summer of Code interns in 2019.

Our goal is to have these docs done by mid-2020 (if not sooner) so we can host a training/doc-a-thon in the Juniper offices in June or July.

[TFB-1522] Move elections mechanics doc to repo

The index.rst for Governance reads:
Elections
The Election Mechanics wiki page supplements the Charter and Governance Document with specific details such as tools, timelines and exact process details. Changes to this page must be approved by the TSC, but should not contradict anything in either the Charter or Governance Document.

Because it needs to be approved by the TSC, and because it's an important part of governance, it should be in the repo along with the rest of the governance docs.

[TFB-1487] Migrate Jira and Blueprint Documentation to Docs Repo

Currently, the Jira workflows and Blueprint submission process for developers are documented in Google Docs.

https://docs.google.com/document/d/1UWIzZZOzTR8zZeTUOpV5pPzq1EcCPrS-F2GkYysOpR8/edit?usp=sharing
https://docs.google.com/document/d/1hYhaPmQEN4V4ZeLxruloIshnQ6yd05vNkcKqhRqCnIw/edit#heading=h.h3vxu6qloos

For consistency and to allow new developers to easily find this required documentation, the purpose of this task is to move these documents to the required format in the docs repository in the Contributor folder.

https://gerrit.tungsten.io/r/admin/repos/docs&quot

[TFB-1403] Document the CI process

Migrated from GitHub Issue: #30

According to a conversation in #dev on Slack, the CI process right now is tribal knowledge. This makes it very difficult for contributors to troubleshoot issues or even to know how things are going.

We should start documentation of this process, written from the perspective of the end user (contributor).

The Slack conversation from on/around 2019-01-30:

17:58 vsinitsyn Is everything okay with the CI? 2 minutes for green unit tests doesn't sound real, especially if building centos packages fails: https://review.opencontrail.org/#/c/48958/ (edited)
18:03 VM (Vicky) Brasseur @vsinitsyn A Codilime dev is doing some work on the Gerrit/repos. Maybe that's affecting it?
18:04 VM (Vicky) Brasseur I've emailed him to ask, and also asked him to join the Slack.
18:04 VM (Vicky) Brasseur His name is Jarek, so keep an eye out for him joining.
18:09 vsinitsyn Thanks Vicky will do
18:22 andrey-mp @vsinitsyn CI doesn't re-run UT job if it was successful for this patchset
18:25 VM (Vicky) Brasseur Is there a doc somewhere that covers this stuff? Or is it tribal knowledge?
18:25 vsinitsyn @Andrey-mp good news, thanks
18:28 andrey-mp I've checked job log and made such conclusion
18:30 jluk False alarm
18:30 jluk Pure tribal knowledge.
18:33 VM (Vicky) Brasseur Hrm. That's not gonna scale.
18:34 — VM (Vicky) Brasseur opens a doc issue…

[TFB-1406] Instructions for manually installing TF on OpenStack

Migrated from GitHub Issue: #21

From #docs on Slack today (2019-01-11):

00:13 I would like to install tungsten fabric with openstack queens manually.
00:13 But I can't find any documents about that.

And also in #users:

07:29 I would like to integrate tungsten fabirc with openstack (queens, rocky) . But I don't see any documents for manual install.
07:32 @Sapd I don't know about any docs that describes how to configure installed OpenStack with new deployed TF
07:34 Today I have installed TF on Kubernetes. But I would like to manual install to clear understand about architecture and all components
08:11 you need to provide keystone auth params to TF of existing OpenStack
08:13 in OpenStack you need to run compute/neutron/heat containers to bring required binaries/modules and then you need to configure neutron/heat
08:15 I will check contrail-heat

[TFB-1574] Transition tf-docs and related workflow from Gerrit to GitHub

The TSC has spoken: The tf-docs repo will act as a prototype for transitioning all TF repos from Gerrit to GitHub. This issue is for tracking the work related to this transition for tf-docs.

  • Confirm all patches are landed from Gerrit
  • Set core contributors as GH repo owners
  • Set confirm only owners can merge
  • Add repo topics (a GH thing)
  • Disable issues, wiki, other unused repo stuff
  • Disable mirroring from Gerrit
  • Move CLA process to GH
  • Set up previewstaging RtD
  • Set up gates
  • Require Issue ID
  • Successful staging push
  • rST linter
  • GH status check: strict (this is the default behavior)
  • Require two +1s
  • Disallow patches directly to master
  • Confirm patches update Jira
  • Disable Gerrit (stop accepting patches)

[TFB-1451] Add Carbide Evaluation Guide to the documentation

Dmitri at Juniper is working on a Carbide Evaluation Guide (aka CEG) for TF. It';s target audience is people who are familiar with Kubernetes and its goal is to make it easier for k8s folks to get up to speed with TF. Right now the document is in a Google Doc: https://docs.google.com/document/d/1RDwLfcZkZfP_b2MDrxIyl3zsy0UrQEErZAStI_Mvv08/edit Once the initial work is complete, the CEG will have to move to the https://gerrit.tungsten.io/r/admin/repos/docs It should go into the User/GettingStarted directory. It must be in http://docutils.sourceforge.net/rst.html

[TFB-1545] Create Read the Docs RST for Automated CLA Steps

The read the docs site has the manual CLA steps for the original OpenContrail Gerrit. https://tungsten-fabric-documentation.readthedocs.io/en/latest/manual-cla-admin.html It appears we need to document the automated CLA process. Although it's straight forward, it would be helpful to have clear steps in read the docs. Wills Docs Census has a description. https://wiki.tungsten.io/display/TUN/Docs+Census It should just require a conversion to RST and to the contributor docs.

[TFB-1505] Release notes for r5.1 in RTD

Tungsten Fabric requires release notes for the r5.1 release. This ticket is for the submission of the r5.1 release notes into the appropriate ReadTheDocs (RTD) format.

[TFB-1551] Git for Tech Writers

Many tech writers arent very familiar with git. We should create a basic doc for this so they have the resources they need to get started.
We can rely on existing resources out there in the world for some of this. For instance, recently (past few years) the Write The Docs conference held a git for tech writers workshop. If those materials are available we may be able to repurpose them (depending upon their licensing).

[TFB-1440] one-line k8s install, clarify for existing compute nodes

page: https://tungstenfabric.github.io/website/Tungsten-Fabric-Ubuntu-one-line-install-on-k8s.html

Section:

What just happened ?
Hurray! Welcome to Tungsten Fabric.

You installed Tungsten Fabric CNI in your Kubernetes node. If new compute nodes are added to your Kubernetes cluster, Tungsten Fabric CNI will be propogated to them auto-magically as it is backed by a Kubernetes DaemaonSet.

An extra sentence should be added to clarify what happens to compute nodes which have already been added prior to this command.

Reading that sentence it kind of sounds like the CNI will only apply from now on, but based on my understanding of daemonsets I would expect that it is already applied to those.

Should I not have added my compute nodes yet when setting up my cluster?

A bit of disambiguation would be good.

[TFB-1409] Ensure new CLA process is documented in the contribution guidelines

We now have the automated CLA stuff integrated into gerrit.tungsten.io.

The docs team will be the first using this Gerrit, which will give us a good opportunity to test out the CLA stuff and ensure it's documented, making contributions easier for others once their repos transition to the TF Gerrit.

A potentially helpful reference will be the LF CLA documentation: https://docs.linuxfoundation.org/display/DOCS/Contributor+License+Agreement+User+Guide

[TFB-1495] Create document listing core committers for each project/repo

For now this will only list the core committers (+2/merge) folks for the Docs project and repo, but eventually we'll add the others in there as well after they move to the TF gerrit.

Instead, maybe document the merge requirements then link to a wiki page listing the current core committers for each project?

[TFB-1525] Manual CLA Process doc is in the wrong directory

Right now this doc is accidentally in the root directory. It should be under administration. Also, it's not showing in RTD at all. This may be a result of the prior sync issues, but more likely it needs to be added to an index.rst or some such?

[TFB-1449] Add basic git-review setup/usage to Contributors

Here are notes I took while setting up git-review and sending my first patch (for https://jira.tungsten.io/browse/TFB-1412 ) They need to be cleaned up, converted to .rst, and added to the Contributors directory.

  • Confirm you have a Jira ticket for the work (required for commit)
  • Confirm you have a signed CLA?
  • Clone the repo (if you don’t have it yet)
    • Log into gerrit.tungsten.io
    • Click Browse > Repositories
    • Select the repo you want
    • git clone "ssh://[email protected]:29418/docs"
  • Set up SSH access for Gerrit (required for the scp in the next step)
    • Log into gerrit.tungsten.io (if you’re not already)
    • Click the ‘Settings’ gear in the upper right next to your name
    • Click ‘SSH Keys’
    • Add your public SSH key (.pub)
    • Test: ssh -p 29418 [email protected] gerrit version
    • Should be gerrit version 2.16.8 or higher
  • Set up git-review
  • Set git config for the repo
    • git config user.email [email protected]
    • gitdir=$(git rev-parse --git-dir);
    • scp -p -P 29418 [email protected]:hooks/commit-msg ${gitdir}/hooks (necessary? cloned w/hooks above)
    • git remote add gerrit ssh://[email protected]:29418/docs
    • git review -s (tests the setup; success == no messages)
  • Make necessary changes
  • Commit your changes
    • Use commit -s so you’ll get the signed-off-by, which is required by git review
    • If you forget to sign a commit, run git commit --amend -s -c <SHA> on it
  • Run git review to get the patch into Gerrit
    • git review

Success looks something like this:
`Θυια:docs vmb$ git review

remote:

remote: Processing changes: }}{{new: 1 ()

remote: Processing changes: new: 1 (|)

remote: Processing changes: new: 1

remote: Processing changes: new: 1

remote: Processing changes: new: 1 ()

remote: Processing changes: refs: 1, new: 1 ()

remote: Processing changes: refs: 1, new: 1, done

remote:

remote: SUCCESS

remote:

remote: New Changes:

remote: https://gerrit.tungsten.io/r/c/docs/+/24 Reorg docs directories

To ssh://gerrit.tungsten.io:29418/docs

  • [new branch] HEAD -> refs/for/master
    `

[TFB-1502] Document working group membership

Right now there's no way to see who's a member of which working group. We should add these to the docs.

Instead of documenting the members themselves (since membership can change a lot), instead doc what the standing WGs are and link to the wiki pages for them.

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.