.. _h7c3078395a79661a4b65806a4d21442: Sintassi del linguaggio Markdown (MD) per le finalità di ‘Read the Docs’ ######################################################################## Questa pagina illustra alcune guide online per i requisiti che i file di tipo \ |STYLE0|\ ``.MD`` devono possedere al fine di compilare le ‘builds’ su Read the Docs. Infatti oltre al formato ReStructuredText ``.RST`` anche il formato MarkDown ``.MD`` può compilare le ‘builds’ su Read the Docs per la visualizzazione dei contenuti nelle pagine HTML. .. Note:: Questa pagina di tutorial nasce dall’esperienza vissuta nel costruire il tutorial \ |LINK1|\ , una guida “\ |STYLE1|\ ”. +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------+ |Sintassi di base del linguaggio Markdown |\ |LINK2|\ | +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------+ |Basic writing and formatting syntax. Create sophisticated formatting for your prose and code on GitHub with simple syntax|\ |LINK3|\ | +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------+ |Una breve guida al linguaggio Markdown |\ |LINK4|\ | +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------+ |Un tool online per editare codice in Markdown |\ |LINK5|\ | +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------+ |Una guida Read the Docs sul linguaggio Markdown |\ |LINK6|\ (con utili analisi comparative tra sintassi del linguaggio MarkDown e HTML)| +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------+ |Project documentation with Markdown |\ |LINK7|\ | +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------+ |markdown-it ``demo`` |\ |LINK8|\ | +-------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------+ | .. _h6c1f7a017361b2c2d521461f614336: Fare leggere i file in formato “.md” a Read the Docs **************************************************** Come descritto in questa \ |LINK9|\ , si possono fare leggere file in formato ``.md `` a Read the Docs. Azioni da effettuare: 1. bisogna creare un file ``requirements.txt`` che ha il seguente contenuto: .. code-block:: python :linenos: sphinx-rtd-theme sphinx recommonmark markdown sphinx-markdown-tables 2. bisogna aggiungere nel file ``conf.py`` le seguenti istruzioni. Dopo ``import sys, os`` inserire il seguente codice: .. code-block:: python :linenos: import recommonmark from recommonmark.transform import AutoStructify # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] html_static_path = ['static'] def setup(app): # overrides for wide tables in RTD theme app.add_stylesheet('theme_overrides.css') # path relative to static app.add_stylesheet('theme_overrides.css') # path relative to static source_parsers = { '.md': 'recommonmark.parser.CommonMarkParser', } source_suffix = ['.rst', '.md'] extensions = ['sphinx.ext.ifconfig','sphinx_markdown_tables'] ``source_suffix = '.rst'`` si trasformerà in ``source_suffix = ['.rst', '.md']`` | |REPLACE1| .. bottom of content .. |STYLE0| replace:: **Markdown** .. |STYLE1| replace:: *per rispondere alle numerose richieste di aiuto sull’uso del calcolatore di campi e per colmare un vuoto sulla guida online di QGIS con esempi e molti screenshot* .. |REPLACE1| raw:: html
.. |LINK1| raw:: html http://hfcqgis.readthedocs.io .. |LINK2| raw:: html https://www.markdownguide.org/basic-syntax .. |LINK3| raw:: html https://help.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax#styling-text .. |LINK4| raw:: html https://www.html.it/articoli/markdown-guida-al-linguaggio .. |LINK5| raw:: html https://stackedit.io/app# .. |LINK6| raw:: html https://markdown-guide.readthedocs.io .. |LINK7| raw:: html https://www.mkdocs.org .. |LINK8| raw:: html https://markdown-it.github.io/ .. |LINK9| raw:: html issue