Skip to content

Commit

Permalink
variable etiqueta *.. nuevo::* agregado
Browse files Browse the repository at this point in the history
  • Loading branch information
MelvinG24 committed Mar 17, 2021
1 parent 77ada62 commit 91c719d
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/Novedades.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ Novedades:

----

.. nuevo::

Lib "archivo"
**************
* Se ha añadido el comando **archivo.anexar()**
Expand Down
Binary file added docs/_static/_media/nuevo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/_media/nuevo.psd
Binary file not shown.
Binary file added docs/_static/_py/__pycache__/nuevo.cpython-38.pyc
Binary file not shown.
20 changes: 20 additions & 0 deletions docs/_static/_py/nuevo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from docutils import nodes
from docutils.parsers.rst import Directive


class Nuevo(Directive):

def run(self):
paragraph_node = nodes.image()
paragraph_node['uri'] = "/_static/_media/nuevo.png"
return [paragraph_node]


def setup(app):
app.add_directive("nuevo", Nuevo)

return {
'version': '0.1',
'parallel_read_safe': True,
'parallel_write_safe': True,
}
10 changes: 6 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@
# 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
import os
import sys
#sys.path.insert(0, os.path.abspath('.'))
sys.path.append(os.path.abspath("./_static/_py/"))

import sphinx_rtd_theme

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

project = 'Manual Latino'
copyright = '2015-2020, Lenguaje Latino.'
copyright = '2015-2021, Lenguaje Latino.'
author = 'Melvin Guerrero'

# The full version, including alpha/beta/rc tags
latino_version = '1.3.0'
latino_version = '1.4.0'


# -- General configuration ---------------------------------------------------
Expand All @@ -34,6 +35,7 @@
extensions = [
"sphinx_rtd_theme",
"sphinx_tabs.tabs",
"nuevo",
]

rst_epilog = """
Expand Down

0 comments on commit 91c719d

Please sign in to comment.