diff options
| author | Robert Göhler <github@ghlr.de> | 2020-02-18 22:28:30 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-18 22:28:30 +0100 | 
| commit | 8d9cb866cef228fc7079620396eb4bf2ea3393c7 (patch) | |
| tree | e1978ff42ca71430c627ea89e2676a4ec1ae13de | |
| parent | b07f0668c38d4232954f69b402a76877efe49ac6 (diff) | |
| parent | 64f9605a5008e53c596526e926dccb676e048c9f (diff) | |
| download | vyos-documentation-8d9cb866cef228fc7079620396eb4bf2ea3393c7.tar.gz vyos-documentation-8d9cb866cef228fc7079620396eb4bf2ea3393c7.zip  | |
Merge pull request #210 from rebortg/master
VyOS Extension: fix commandlist margin in pdf and apply custom css
| -rw-r--r-- | docs/_ext/vyos.py | 2 | ||||
| -rw-r--r-- | docs/_static/css/custom.css | 9 | ||||
| -rw-r--r-- | docs/conf.py | 10 | 
3 files changed, 9 insertions, 12 deletions
diff --git a/docs/_ext/vyos.py b/docs/_ext/vyos.py index 7a3d75ba..4ee87d63 100644 --- a/docs/_ext/vyos.py +++ b/docs/_ext/vyos.py @@ -245,7 +245,7 @@ class CfgCmdDirective(CmdDirective):  def process_cmd_node(app, cmd, fromdocname):      para = nodes.paragraph() -    newnode = nodes.reference(' ', ' ') +    newnode = nodes.reference('', '')      innernode = cmd['cmdnode']      newnode['refdocname'] = cmd['docname']      newnode['refuri'] = app.builder.get_relative_uri( diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css index a1e34259..7faf7b7f 100644 --- a/docs/_static/css/custom.css +++ b/docs/_static/css/custom.css @@ -46,12 +46,19 @@ span.cfgcmd {  } -  a.cmdlink {      font-size: 80%;      margin-left: 6px;  } +a.cmdlink span{ +    color: #2980B9; +} + +a.cmdlink span:hover{ +    color: #3091d1; +} +  .wy-nav-content {    max-width : none;  } diff --git a/docs/conf.py b/docs/conf.py index 99a41450..b63d4a03 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -177,15 +177,5 @@ texinfo_documents = [  ] -def vytask_role(name, rawtext, text, lineno, inliner, options={}, content=[]): -    app = inliner.document.settings.env.app -    base = app.config.vyos_phabricator_url -    ref = base + str(text) -    set_classes(options) -    node = nodes.reference( -        rawtext, utils.unescape(str(text)), refuri=ref, **options) -    return [node], [] - -  def setup(app):      pass  | 
