-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
1,090 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
version: 2 | ||
|
||
sphinx: | ||
builder: "html" | ||
configuration: "docs/source/conf.py" | ||
fail_on_warning: false | ||
|
||
python: | ||
version: 3.7 | ||
install: | ||
- requirements: "docs/requirements.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
m2r2==0.2.7 | ||
Sphinx | ||
toml | ||
sphinx-rtd-theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
body { | ||
font-family: 'Fira Sans', 'Noto Sans', 'Source Sans Pro', 'Segoe UI', Roboto, 'Lucida Sans Unicode', 'Lucida Grande', 'DejaVu Sans', sans-serif; | ||
} | ||
@media (min-width: 60em) { | ||
body { | ||
display: flex; | ||
flex-direction: row; | ||
} | ||
} | ||
#jschemer-nav { | ||
min-width: 15rem; | ||
padding: 1em; | ||
} | ||
.jschemer-schema { | ||
border: 0.05em solid #CCC; | ||
border-radius: 0.25em; | ||
margin: 0.5em; | ||
max-width: 60em; | ||
padding: 1em; | ||
} | ||
.jschemer-schema code, | ||
.jschemer-schema pre { | ||
background-color: rgba(27, 31, 35, 0.05); | ||
border-radius: 0.1em; | ||
font-size: 85%; | ||
line-height: 1.5; | ||
} | ||
.jschemer-schema pre { | ||
padding: 1em 0.5em; | ||
} | ||
.jschemer-schema code { | ||
display: inline; | ||
font-family: 'Fira Mono', 'Noto Mono', 'Source Code Pro', Consolas, 'Roboto Mono', 'Lucida Console', Monaco, 'DejaVu Sans Mono', monospace; | ||
font-size: 85%; | ||
line-height: inherit; | ||
padding: 0.2em 0.4em; | ||
word-wrap: normal; | ||
} | ||
.jschemer-schema pre > code { | ||
background-color: transparent; | ||
padding: 0; | ||
} | ||
.jschemer-schema h1 { | ||
display: inline; | ||
font-size: 1.5em; | ||
vertical-align: middle; | ||
} | ||
.jschemer-schema h1 code::before { | ||
content: '"'; | ||
} | ||
.jschemer-schema h1 code::after { | ||
content: '"'; | ||
} | ||
.jschemer-schema h2 { | ||
font-size: 1em; | ||
} | ||
main > .jschemer-schema > details > summary > h1 { | ||
font-size: 2em; | ||
} | ||
main ul { | ||
list-style: disc; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* override table width restrictions */ | ||
@media screen and (min-width: 767px) { | ||
|
||
.wy-table-responsive table td { | ||
/* !important prevents the common CSS stylesheets from overriding | ||
this as on RTD they are loaded after this stylesheet */ | ||
white-space: normal !important; | ||
} | ||
|
||
.wy-table-responsive { | ||
overflow: visible !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
############ | ||
Attribution | ||
############ | ||
|
||
.. mdinclude:: ../../../README.md | ||
:start-line: 92 | ||
:end-line: 126 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# This file only contains a selection of the most common options. For a full | ||
# list see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Path setup -------------------------------------------------------------- | ||
|
||
# If extensions (or modules to document with autodoc) are in another directory, | ||
# add these directories to sys.path here. If the directory is relative to the | ||
# documentation root, use os.path.abspath to make it absolute, like shown here. | ||
# pylint: disable=W,C | ||
import os | ||
import sys | ||
import toml | ||
|
||
sys.path.insert(0, os.path.abspath("../..")) | ||
toml_dict = toml.load("../../pyproject.toml") | ||
|
||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
project = toml_dict["tool"]["poetry"]["name"] | ||
copyright = f"{toml_dict['tool']['poetry']['authors'][0]}, 2021" | ||
author = ",".join(toml_dict["tool"]["poetry"]["authors"]) | ||
|
||
# The full version, including alpha/beta/rc tags | ||
release = toml_dict["tool"]["poetry"]["version"] | ||
|
||
|
||
# -- General configuration --------------------------------------------------- | ||
|
||
# Add any Sphinx extension module names here, as strings. They can be | ||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||
# ones. | ||
extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon", "m2r2"] | ||
|
||
autodoc_default_options = { | ||
"members": True, | ||
"show-inheritance": True, | ||
"special-members": "__init__", | ||
"undoc-members": True, | ||
} | ||
|
||
|
||
# Add any paths that contain templates here, relative to this directory. | ||
templates_path = ["_templates"] | ||
|
||
# The suffix(es) of source filenames. | ||
# You can specify multiple suffix as a list of string: | ||
# | ||
# source_suffix = ['.rst', '.md'] | ||
source_suffix = ".rst" | ||
|
||
# The master toctree document. | ||
master_doc = "index" | ||
|
||
# The name of the Pygments (syntax highlighting) style to use. | ||
pygments_style = "sphinx" | ||
|
||
# List of patterns, relative to source directory, that match files and | ||
# directories to ignore when looking for source files. | ||
# This pattern also affects html_static_path and html_extra_path. | ||
exclude_patterns = [] | ||
|
||
|
||
# -- Options for HTML output ---------------------------------------------- | ||
|
||
# The theme to use for HTML and HTML Help pages. See the documentation for | ||
# a list of builtin themes. | ||
# | ||
html_theme = "sphinx_rtd_theme" | ||
|
||
# Theme options are theme-specific and customize the look and feel of a theme | ||
# further. For a list of options available for each theme, see the | ||
# documentation. | ||
# | ||
# html_theme_options = {} | ||
|
||
|
||
# Add any paths that contain custom static files (such as style sheets) here, | ||
# relative to this directory. They are copied after the builtin static files, | ||
# so a file named "default.css" will overwrite the builtin "default.css". | ||
html_static_path = ["_static"] | ||
|
||
html_context = { | ||
"css_files": [ | ||
"_static/theme_overrides.css", # override wide tables in RTD theme | ||
"_static/schema-page.css", # Add css from jschemer | ||
] | ||
} | ||
|
||
html_sidebars = {"**": ["globaltoc.html", "relations.html", "sourcelink.html", "searchbox.html"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
############ | ||
Contributing | ||
############ | ||
|
||
.. mdinclude:: ../../../README.md | ||
:start-line: 131 | ||
:end-line: 178 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.. netutils documentation master file, created by | ||
sphinx-quickstart on Wed May 5 01:15:43 2021. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
Welcome to netutils's documentation! | ||
==================================== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
overview/index | ||
netutils/index | ||
attribution/index | ||
contributing/index | ||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
********* | ||
BGP ASNs | ||
********* | ||
|
||
.. automodule:: netutils.asn | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
******* | ||
Configs | ||
******* | ||
|
||
.. automodule:: netutils.config.clean | ||
:members: | ||
|
||
.. automodule:: netutils.config.compliance | ||
:members: | ||
|
||
.. automodule:: netutils.config.parser | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
**** | ||
DNS | ||
**** | ||
|
||
.. automodule:: netutils.dns | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
****************** | ||
Netutils Functions | ||
****************** | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
asn/index | ||
configs/index | ||
dns/index | ||
interface/index | ||
ip/index | ||
mac/index | ||
password/index | ||
ping/index | ||
route/index | ||
vlan/index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*********** | ||
Interfaces | ||
*********** | ||
|
||
.. automodule:: netutils.interface | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
************** | ||
IP addresses | ||
************** | ||
|
||
.. automodule:: netutils.ip | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
************** | ||
MAC addresses | ||
************** | ||
|
||
.. automodule:: netutils.mac | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*********** | ||
Passwords | ||
*********** | ||
|
||
.. automodule:: netutils.password | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
****** | ||
Ping | ||
****** | ||
|
||
.. automodule:: netutils.ping | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
********* | ||
Routing | ||
********* | ||
|
||
.. automodule:: netutils.route | ||
:members: |
Oops, something went wrong.