trapier / docs

Cumulus Networks docs repo

Home Page:https://docs.cumulusnetworks.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cumulus Networks Documentation

This the source repository for the Cumulus Networks Documentation, hosted at docs.cumulusnetworks.com. The site is built with the static site generator Hugo

Installing the Documentation and Running the Local Server

The docs are built with the static site generator Hugo Hugo contains a local development server to build and view live changes to the repo. Hugo is a command line interface.

In order to build and view the live site:

  1. Install Hugo version 0.55.6

  2. Verify Hugo is installed with hugo version This site supports hugo version 0.55.6

  3. Clone this repository with git clone

  4. Navigate to the docs-internal subdirectory

  5. Start the hugo server with hugo server

  6. The site will be available at http://localhost:1313, hugo will watch and rebuild the site with any changes to the source.

Contributing to the Documentation

This repository will contain the documentation hosted at docs.cumulusnetworks.com Commits to the master branch will build and deploy

If you would like to contribute to the site, please fork and submit a pull request

Content with Hugo

All site content in hugo is written in Markdown, and hosted in the /content folder. The site is built with the file tree and organization of this folder.

Hugo supports basic Github markdown syntax. A helpful guide for markdown is right here. Hugo supports custom shortcodes, which are contained the Writing Guide section of the docs.

Adding a section

Sections in hugo are subdirectories of the /content folder. In order to add a section, create a subdirectory, i.e. 'MySection', then add a _index.md file. All first-level subdirectories from /content are default sections, but any nested sections must include _index.md.

Organization

Content is ordered by the weight parameter in the front matter. Hugo arranges lower weights first, and is relative per section. Articles with draft: true in the front matter will not be built when hugo server is run. Use hugo server -D to include drafts.

Theme

The site is based off the Hugo Book theme, built by alex-shpak. The NetDocs theme contains custom shortcodes and partial templates, as well as styling customizations and assets not included with the base theme. The layouts directory in the main repo is the final layout override, and contains any site-specific assets. See theme components for information on theme overrides, and https://gohugo.io/templates/lookup-order/ for information on Hugo's default lookup order.

Resources

About

Cumulus Networks docs repo

https://docs.cumulusnetworks.com


Languages

Language:HTML 52.2%Language:CSS 39.3%Language:JavaScript 8.5%