Skip to content

Documentation and examples for using open network management tools such as OpenConfig

License

Notifications You must be signed in to change notification settings

UchihaItachiSama/openmgmt

 
 

Repository files navigation

openmgmt

Documentation and examples for using open network management tools such as OpenConfig

Tools Setup

markdownlint-cli

Content is to be linted to ensure consistency of formatting. This requires using markdown-cli.

MacOS users can install markdownlint-cli via homebrew.

brew install markdownlint-cli

Alternately, markdownlint-cli can be installed via NPM, details are available at the link above.

pre-commit

In order to automate the process of linting a pre-commit hook is utilized. This requires the installation of pre-commit. Depending on your environment, the installation process may vary.

python PIP installation

If you're using pyenv or some other python version manager, pre-commit can be installed via pip. This ensures that it's installed to your preferred python environment.

pip install pre-commit

homebrew installation

brew install pre-commit

pre-commit setup

From the root of the repository execute pre-commit install this will add the necessary hooks to your local git configuration and setup the necessary tooling in order to suport development.

mkdocs Operation

installation

Install mkdocs via pip.

pip install mkdocs

Theme Installation

pip install mkdocs-material

Build Content

mkdocs build

Locally (Re)View Changes

It is possible to see the locally rendered content and it is highly recommended that you validate that your changes do not break something in the visual rendering of the site. In order to locally serve the site mkdocs will start a local web server, this can be invoked via the following command.

mkdocs serve

Site Deployment

The site should be built and generated from main. This will ensure that all of the content is integrated and appropriately rendered. DO NOT deploy directly from a branch other than main. When there are changes to merge generate a PR and have it merged into main. From main, issue a deployment using the mkdocs deploy function.

git pull --all      # make sure you have the latest version of main
git checkout main   # switch to the main branch (if necessary)
mkdocs build        # render the site
mkdocs gh-deploy    # deploy using the mkdocs tool

About

Documentation and examples for using open network management tools such as OpenConfig

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages