Skip to content

Commit

Permalink
init/update fortios galaxy document:2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
FTNT-HQCM committed Sep 14, 2021
0 parents commit e65579e
Show file tree
Hide file tree
Showing 628 changed files with 729,427 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
View docs generated by this project: https://ansible-galaxy-fortios-docs.readthedocs.io
134 changes: 134 additions & 0 deletions _static/collapse.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
/*
CSS for the main interaction
*/
.accordion > input[name="collapse"] {
display: none;

/*position: absolute;
left: -100vw;*/
}

.accordion label,
.accordion .content{
/*max-width: 620px;*/
margin: 0 auto;
}


.accordion .content {
background: auto;
overflow: hidden;
height: 0;
transition: 0.5s;
/*box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);*/
}

.accordion > input[name="collapse"]:checked ~ .content {
/*height: 380px;*/
transition: height 0.5s;
}

.accordion label {
display: block;

}


/* For Desktop */
@media only screen and (min-width: 620px){


.accordion > input[name="collapse"]:checked ~ .content {
height: auto;
}

}



.accordion {
margin-bottom: 1em;
}

.accordion > input[name="collapse"]:checked ~ .content {
border-top: 0;
transition: 0.3s;
}

.accordion .handle {
margin: 0;
font-size: 16px;

}

.accordion label {
color: #FF8C00;
cursor: pointer;
font-weight: normal;
padding: 10px;
background: auto;
user-select: none;

}

.accordion label:hover,
.accordion label:focus {
background: #252525;
}

.accordion .handle label:before {
font-family: FontAwesome;
content: "\f107";
display: inline-block;
margin-right: 10px;
font-size: 1em;
line-height: 1.556em;
vertical-align: middle;
transition: 0.4s;

}

.accordion > input[name="collapse"]:checked ~ .handle label:before {
transform: rotate(180deg);
transform-origin: center;
transition: 0.4s;
}


/*
Demo purposes only
*/
*,
*:before,
*:after {
box-sizing: border-box;
}

body {
background: #ccc;
padding: 10px;
}

a {
color: #06c;
}

p {
margin: 0 0 1em;
padding: 10px;
}

h1 {
margin: 0 0 1.5em;
font-weight: 600;
font-size: 1.5em;
}

.accordion p:last-child {
margin-bottom: 0;
}
.container{
max-width: 620px;
margin: 0 auto;
}

109 changes: 109 additions & 0 deletions _static/theme_overrides.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
/* 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;
}
}
table.documentation-table {
border-collapse: collapse;
border-left:1px;
}

th {
background-color: #85BEE4;
color: white;
}

tr:hover {background-color: #E7F2FA;}

table.documentation-table, th, td {
padding: 6px;
border: 1px solid black;
}

.li-head{
border-radius: 0%;
background-color: #EEEEEE;
padding-left: 8px;
padding-right: 8px;
background-position-y: 9%;
font-family: Consolas;
color: #fa7d2a;
border-left:solid #fcc29b 3px;
}
.li-normal{
background-color: #FFFFFF;
border-radius: 5%;
padding-left: 8px;
padding-right: 8px;
font-family: Consolas;
font-size: 11pt;
/*font-size: 9pt;*/
color: #666666;
border-bottom:solid #EEEEEE 1px;
}
.li-required{
background-color: #FFFFFF;
border-radius: 5%;
padding-left: 8px;
padding-right: 8px;
font-family: Consolas;
font-size: 11pt;
color: #ee0000;
border-bottom:solid #EEEEEE 1px;
}

.li-return{
border-radius: 0%;
background-color: #EEEEEE;
padding-left: 8px;
padding-right: 8px;
background-position-y: 9%;
font-family: Consolas;
color: #009de6;
border-left:solid #bbe1fa 3px;
}

* {
margin: 0;
padding: 0;
}

.ul-all{
margin-left: 0px;
}

.ul-self{
margin-left: 30px;
}

.wy-side-nav-search {
background: #ff893a;
}

.caption-text {
color: #ff893a;
}

.wy-nav-content {
max-width: none;
}

/*
.wy-nav-top {
background: #ff2c32;
}
.wy-nav-side {
background: #ffe8d7;
}
.rst-versions .rst-current-version {
background: #22ffff;
} */
30 changes: 30 additions & 0 deletions _static/util.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
function ContentClick(elementid, btnid) {

// display the content
if (document.getElementById(elementid).clicked == undefined ||
document.getElementById(elementid).clicked == false) {
document.getElementById(elementid).clicked = true;
document.getElementById(elementid).style.display = '';
document.getElementById(btnid).text = 'less...';
} else {
document.getElementById(elementid).style.display = 'none';
document.getElementById(elementid).clicked = false;
document.getElementById(btnid).text = 'more...';
}
}

function ContentPreview(elementid) {
if (document.getElementById(elementid).clicked == false ||
document.getElementById(elementid).clicked == undefined) {
document.getElementById(elementid).style.display = '';
}
document.getElementById(elementid).underpreview = true;
}

function ContentUnpreview(elementid) {
if (document.getElementById(elementid).clicked == false ||
document.getElementById(elementid).clicked == undefined) {
document.getElementById(elementid).style.display = 'none';
}
document.getElementById(elementid).underpreview = false;
}
70 changes: 70 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# 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.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))


# -- Project information -----------------------------------------------------

project = 'Ansible Galaxy FortiOS Collection'
copyright = '2020-2021, Fortinet'
author = 'Fortinet'

# The full version, including alpha/beta/rc tags
release = '1.0'

html_static_path = ['_static']

html_context = {
'css_files': [
'_static/theme_overrides.css', # override wide tables in RTD theme
'_static/collapse.css',
],
}

html_js_files = [
'util.js',
]

master_doc = 'index'

# -- 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 = [
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# 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 = ['_build', 'Thumbs.db', '.DS_Store']


# -- 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'

# 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']
html4_writer=True
13 changes: 13 additions & 0 deletions export.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Export playbooks
=========================================

|
The module gathers FortiOS factss are invoking ``GET`` requests for FortiOS managed objects or procedures and converts the returned facts into a playbook that users can apply directly.

.. toctree::
:glob:
:maxdepth: 1


fortios_export_config_playbook.rst

0 comments on commit e65579e

Please sign in to comment.