Sphinx, Webhooks, and Bitbucket Documentation Release 1.0

Total Page:16

File Type:pdf, Size:1020Kb

Sphinx, Webhooks, and Bitbucket Documentation Release 1.0 Sphinx, Webhooks, and Bitbucket Documentation Release 1.0 Adelaide Rhodes, Ph.D. March 30, 2016 Contents 1 Introduction 1 2 Start of the Tutorial 3 2.1 Paragraph.................................................3 2.2 Inline markup...............................................4 2.3 Lists...................................................5 2.4 Pre-formatted text............................................6 2.5 Section Headers.............................................6 3 Introduction - “Chapter I” 9 4 Start of the Tutorial - “Chapter II 11 4.1 Paragraph - Section............................................ 11 4.2 Inline markup - Section......................................... 11 4.3 Document titles and subtitles....................................... 11 4.4 Copy and Paste your page into the following website to check your syntax:.............. 12 4.5 Correct any errors that you can see.................................... 12 4.6 Move on to Part II............................................ 12 5 Additional Readings 13 6 OPEN an EC-2 INSTANCE on Amazon 15 7 INSTALL DEPENDENCIES: 17 8 Running Sphinx the First Time 19 9 Open your HTML file 23 10 MAKING OUR DOCUMENTS LOOK NICE 25 11 Changing the Theme on the Local Computer or Remotely on the EC2 27 12 Webhooks and Automation 29 13 Create a Repository 31 13.1 Bitbucket version............................................. 32 13.2 Github version.............................................. 32 14 Readthedocs.org 33 i 15 Automating the Web Hook 39 16 Changing the style pages for Read the Docs 43 17 In Summary 45 17.1 Set up Read the Docs........................................... 45 18 Restructured Text for Building Webpages for Git Repositories 49 18.1 Description:............................................... 49 18.2 Learning Objective:........................................... 49 18.3 Webtools to Sign up For Beforehand.................................. 49 ii CHAPTER 1 Introduction reStructuredText is a simplified mark-up language. These simplified patterns are interpreted by a HTML converter to produce “Very Structured Text” read by a web browser. I started using reStructuredText after forgetting one too many </p></a></strong> in my html files. I would get overwhelmed by the multiple lines of code and would give up in frustration after a few minutes of trying to keep my eyes uncrossed. In reST, there are only a few rules to remember, and most of them hinge upon the special symbols that come before and after regular text. I usually start by writing a simple piece of text, then adding in the symbols from top to bottom. You may like to add the symbols as you go. 1 Sphinx, Webhooks, and Bitbucket Documentation, Release 1.0 2 Chapter 1. Introduction CHAPTER 2 Start of the Tutorial Before beginning, take a few minutes to download a good text editor for your computer if you do not already have one. I recommend Notepad++ or Sublime3 for Windows. TextEdit is okay, in windows, but does not have the nice format- ting options of Notepad++. Sublime3 automatically recognizes and colorcodes several programming languages. I recommend Atom or Text Wrangler for Mac. Atom has the added function of being able to preview certain types of markdown (not reST) in an adjacent window and will allow direct edits to a github repository within the program. Text Wrangler allows files to be saved in Unix-code directly, and has a spellchecker built in. The most important feature is to have a text editing tool that does not add back-end coding (e.g. Microsoft Word) and that has line numbering along the side. This will be important later when Sphinx builds the Makefile. If you do not have a text editing tool installed, please do so now. Fastest installs are Notepad++ for windows and Text Wrangler for Mac. Windows Text Editors: • https://notepad-plus-plus.org/download • https://github.com/atom/atom/releases/download/v1.5.3/atom-windows.zip • https://www.sublimetext.com/3 Mac Text Editors: • https://s3.amazonaws.com/BBSW-download/TextWrangler_5.0.2.dmg • https://atom.io/ • https://www.sublimetext.com/3 2.1 Paragraph The basic building block of reST is the paragraph. A paragraph is a set of text that is separated by blank lines, one line is enough. A paragraph that is indented in reST will be indented on the web page. Paragraphs that need to be aligned should start in the same location (in this case all the way to the left). 3 Sphinx, Webhooks, and Bitbucket Documentation, Release 1.0 2.2 Inline markup Symbols used in resStructeredText (reST) asterisk “*”,”backslash “”,grave accent “‘” Simplest case: inline markup with *italics* and **bold** Simplest case: inline markup with italics and bold Yes, it is that simple. If the “*” is inside a line, say an equation 6*30=180, reST will ignore it. If the * is all by itself, surrounded by spaces, reST will ignore it. What if you have a line you want to start with “*”, but not be italicized? 2.2.1 First method: Place a backslash in front of the symbol. Now the html interpreter will see the \*word* and ignore the italics symbol. Now the html interpreter will see the *word* and ignore the italics symbol. This is similar to the “escape” function that is used for in regex, or when you are transferring a file with spaces in the name. ignores the “specialness” of the character. 2.2.2 Second method: That is where use a new symbol: “‘” = grave accent, sometimes referred to as “backtick” or “back quote” In Mac keyboards, this accent is found underneath the ~, to the left of number 1. Here is a guide for finding the grave in your computer: http://superuser.com/questions/254076/how-do-i-type-the-tick-and-backtick-characters-on-windows What about if the word is not inline, but at the beginning of a paragraph? To ignore the asterisk in the following condition - place the phrase within double grave accents. ``*word*`` becomes *word* instead of word This method is called “inline literals”, and I prefer to use this method, because it is more symmetrical to me. However, if you are using a lot of regular expression in your work, backslash may be more familiar to your style. Some issues: reST may not be nested content may not start or end with whitespace: * text* is wrong, A backslash escaped space to work around that: thisis\ *one*\ word. Backslash will not work at the beginning of a paragraph, list item or section in some html interpreters. 4 Chapter 2. Start of the Tutorial Sphinx, Webhooks, and Bitbucket Documentation, Release 1.0 2.3 Lists Three kinds: 1. enumerated, * bulleted, and definitions indented text to define a term If the left-hand side of the paragraph or aligns, you can have as many sublists as you want. Lists must always start a new paragraph – that is, they must appear after a blank line. 2.3.1 enumerated lists How to do it: Start a line off with a number or letter followed by a period ”.”, right parenthesis ”)” or surrounded by parentheses “( )” 1. numbers 1. upper-case letters. Information can be continued over several lines, to create a new paragraph, make sure to leave a blank line. This is my second paragraph. 1. lower-case letters (a) here is a sub-list starting at a different number (b) it is up to you to check the sequence 1. upper-case roman numerals 1. lower-case roman numerals 1. numbers in parentheses 1. numbers with one right parentheses Known issue: the different enumerated list styles are not always supported by every web browser. 2.3.2 bulleted lists How to do it: Just like enumerated lists, start the line off with a bullet point character “-”, “+” or “*” : • bullet point using “*” – sub-list using “-“ * another sub-list using “+” – another item • bullet point using “*” – sub-list using “-“ * another sub-list using “+” – another item Note: nested lists require blank lines before the beginning of the sublist 2.3. Lists 5 Sphinx, Webhooks, and Bitbucket Documentation, Release 1.0 2.3.3 definition lists definition lists consist of a term, and the definition of that term. The format of a definition list is: what Definition lists associate a term with a definition. how The term is a one-line phrase. The definition is one or more paragraphs or body elements, indented relative to the term. No blank lines between term and definition. 2.4 Pre-formatted text If I have something written out in a text document and I want to have it look exactly that way in reST, I can indicate that the text is “preformatted” by adding ”::” to the end of the prior paragraph. This is called a “literal block”. It only works if an indentation is provided for the text following the ”::”. The block will appear as a slightly different color on the page, depending on which format you choose for Sphinx. An example: Whitespace, newlines, blank lines, and **markup** (like *this* or \this) is preserved by literal blocks. Your mistakes are retained as well, (note poor alignment here) no more example To hide the :: from the html version, just add a whitespace before the :: If you are putting the pre-formatted text at the beginning of a section and there is no paragraph beforehand, you can just put ”::” at the beginning of a line. Make sure to skip a line between that :: and the start of your pre-formatted text.: _ ,:'/ _..._ // ( `""-.._.' \| / 6\___ | 6 4 | / \_ .--' (_'---'`) / `'---`() ,' | , .'` | )\ _.-' ; / | .'` _ / /` / .' '. , | / / / \ ; | | | \ | | .| | | \ `"| /.-' | | | '-..-\ _.;.._ | |.;-. \ <`.._ )) | .;-. )) (__. ` ))-' \_ ))' `'--"` Rambo `"""` 2.5 Section Headers You might have noticed that I have been interlacing my sections with non-alpha-numeric characters as I write this document. 6 Chapter 2. Start of the Tutorial Sphinx, Webhooks, and Bitbucket Documentation, Release 1.0 • Sections can be indicated by the following: = - ‘ : ‘ ” ~ ^ _ * + # < > • The underline symbol must extend as long as the text, and appear immediately underneath the name of the section • Follow the underline symbol with a blank line • Sections with the same symbol will be considered to be the same level in the text, so it is important to remember which symbols you used for each level.
Recommended publications
  • Tinn-R Team Has a New Member Working on the Source Code: Wel- Come Huashan Chen
    Editus eBook Series Editus eBooks is a series of electronic books aimed at students and re- searchers of arts and sciences in general. Tinn-R Editor (2010 1. ed. Rmetrics) Tinn-R Editor - GUI forR Language and Environment (2014 2. ed. Editus) José Cláudio Faria Philippe Grosjean Enio Galinkin Jelihovschi Ricardo Pietrobon Philipe Silva Farias Universidade Estadual de Santa Cruz GOVERNO DO ESTADO DA BAHIA JAQUES WAGNER - GOVERNADOR SECRETARIA DE EDUCAÇÃO OSVALDO BARRETO FILHO - SECRETÁRIO UNIVERSIDADE ESTADUAL DE SANTA CRUZ ADÉLIA MARIA CARVALHO DE MELO PINHEIRO - REITORA EVANDRO SENA FREIRE - VICE-REITOR DIRETORA DA EDITUS RITA VIRGINIA ALVES SANTOS ARGOLLO Conselho Editorial: Rita Virginia Alves Santos Argollo – Presidente Andréa de Azevedo Morégula André Luiz Rosa Ribeiro Adriana dos Santos Reis Lemos Dorival de Freitas Evandro Sena Freire Francisco Mendes Costa José Montival Alencar Junior Lurdes Bertol Rocha Maria Laura de Oliveira Gomes Marileide dos Santos de Oliveira Raimunda Alves Moreira de Assis Roseanne Montargil Rocha Silvia Maria Santos Carvalho Copyright©2015 by JOSÉ CLÁUDIO FARIA PHILIPPE GROSJEAN ENIO GALINKIN JELIHOVSCHI RICARDO PIETROBON PHILIPE SILVA FARIAS Direitos desta edição reservados à EDITUS - EDITORA DA UESC A reprodução não autorizada desta publicação, por qualquer meio, seja total ou parcial, constitui violação da Lei nº 9.610/98. Depósito legal na Biblioteca Nacional, conforme Lei nº 10.994, de 14 de dezembro de 2004. CAPA Carolina Sartório Faria REVISÃO Amek Traduções Dados Internacionais de Catalogação na Publicação (CIP) T591 Tinn-R Editor – GUI for R Language and Environment / José Cláudio Faria [et al.]. – 2. ed. – Ilhéus, BA : Editus, 2015. xvii, 279 p. ; pdf Texto em inglês.
    [Show full text]
  • Automation to Save Your Bacon Elliot Jordan End-User Platform Security Nordstrom “I’M Not Really a Software Developer
    Linters Hooks Pipelines Automation to Save Your Bacon Elliot Jordan End-User Platform Security Nordstrom “I’m not really a software developer. I just think I’m a software developer because I develop software.” — Arjen van Bochoven ‣ Package sources ‣ Scripts and extension plist, yaml, json, shell, python attributes ‣ AutoPkg recipes/ shell, python overrides ‣ MDM profiles plist, shell, python plist ‣ Munki repos ‣ Documentation plist, python, shell text, markdown, reStructuredText Mac Software "Dev Ops" Admin Developer Reducing errors Streamlining development Automating tedious tasks Ground Rules Protected "master" branch Peer review Remote Git hosting Production code in Git Code standards Linters Linters Linters Linters Linters Linters Linters Atom + Shellcheck Linters Atom + Shellcheck Terminal $ brew install shellcheck ==> Downloading https://homebrew.bintray.com/bottles/ shellcheck-0.6.0_1.mojave.bottle.tar.gz ==> Pouring shellcheck-0.6.0_1.mojave.bottle.tar.gz ! /usr/local/Cellar/shellcheck/0.6.0_1: 8 files, 7.2MB $ which shellcheck /usr/local/bin/shellcheck ⌘C $ Linters Atom + Shellcheck Linters Atom + Shellcheck Linters Atom + Shellcheck Linters Atom + Shellcheck Linters Atom + Shellcheck Linters Atom + Shellcheck Linters Atom + Shellcheck ⌘V Linters Atom + Shellcheck Linters Atom + Shellcheck Linters Atom + Shellcheck Linters Atom + Shellcheck Click to learn more! Linters Atom + Shellcheck Linters Atom + Shellcheck Typo caught Linters Atom + Shellcheck Suggestions for improving resiliency Linters Atom + Shellcheck Deprecated syntax
    [Show full text]
  • Using Css to Style the Pdf Output
    Oxygen Markdown Support Alex Jitianu, Syncro Soft [email protected] @AlexJitianu © 2020 Syncro Soft SRL. All rights reserved. Oxygen Markdown Support Agenda • Markdown – the markup language • Markdown editing experience in Oxygen • Markdown and DITA working together • Validation and check for completeness (Quality Assurance) Oxygen Markdown Support What is Markdown? • Easy to learn Create a Google account ============ • Minimalistic How to create or set up your **Google Account** on • your mobile phone. Many authoring tools available * From a Home screen, swipe up to access Apps. • Publishing tools * Tap **Settings** > **Accounts** * Tap **Add account** > **Google**. Oxygen Markdown Support Working with Markdown • Templates • Editing and toolbar actions (GitHub Flavored Markdown) • HTML/DITA/XDITA Preview • Export actions • Oxygen XML Web Author Oxygen Markdown Support DITA-Markdown hybrid projects • Main documentation project written in DITA • SME(s) (developers) contribute content in Markdown Oxygen Markdown Support What is DITA? • DITA is an XML-based open standard • Semantic markup • Strong reuse concepts • Restrictions and specializations • Huge ecosystem of publishing choices Oxygen Markdown Support Using specific DITA concepts in Markdown • Metadata • Specialization types • Titles and document structure • Image and key references • https://github.com/jelovirt/dita-ot-markdown/wiki/Syntax- reference Oxygen Markdown Support What is Lightweight DITA? • Lightweight DITA is a proposed standard for expressing simplified DITA
    [Show full text]
  • Pelican Documentation Release 3
    Pelican Documentation Release 3 Alexis Métaireau November 20, 2012 CONTENTS i ii Pelican Documentation, Release 3 Pelican is a static site generator, written in Python. • Write your weblog entries directly with your editor of choice (vim!) in reStructuredText or Markdown • Includes a simple CLI tool to (re)generate the weblog • Easy to interface with DVCSes and web hooks • Completely static output is easy to host anywhere CONTENTS 1 Pelican Documentation, Release 3 2 CONTENTS CHAPTER ONE FEATURES Pelican currently supports: • Blog articles and pages • Comments, via an external service (Disqus). (Please note that while useful, Disqus is an external service, and thus the comment data will be somewhat outside of your control and potentially subject to data loss.) • Theming support (themes are created using Jinja2 templates) • PDF generation of the articles/pages (optional) • Publication of articles in multiple languages • Atom/RSS feeds • Code syntax highlighting • Compilation of LESS CSS (optional) • Import from WordPress, Dotclear, or RSS feeds • Integration with external tools: Twitter, Google Analytics, etc. (optional) 3 Pelican Documentation, Release 3 4 Chapter 1. Features CHAPTER TWO WHY THE NAME “PELICAN”? “Pelican” is an anagram for calepin, which means “notebook” in French. ;) 5 Pelican Documentation, Release 3 6 Chapter 2. Why the name “Pelican”? CHAPTER THREE SOURCE CODE You can access the source code at: https://github.com/getpelican/pelican 7 Pelican Documentation, Release 3 8 Chapter 3. Source code CHAPTER FOUR FEEDBACK / CONTACT US If you want to see new features in Pelican, don’t hesitate to offer suggestions, clone the repository, etc. There are many ways to contribute.
    [Show full text]
  • Dynamic Documents in Stata: Markdoc, Ketchup, and Weaver
    Haghish, E. F. (2014). Dynamic documents in Stata: MarkDoc, Ketchup, and Weaver. http://haghish.com/talk/reproducible_report.php Dynamic documents in Stata: MarkDoc, Ketchup, and Weaver Summary For Stata users who do not know LaTeX, writing a document that includes text, graphs, and Stata syntax and output has been a tedious and unreproducible manual process. To ease the process of creating dynamic documents in Stata, many Stata users have wished to see two additional features in Stata: literate programming and combining graphs with logfiles in a single document. MarkDoc, Ketchup, and Weaver are three user‐written Stata packages that allow you to create a dynamic document that includes graphs, text, and Stata codes and outputs and export it in a variety of file formats, including PDF, Docx, HTML, LaTex, OpenOffice/LibreOffice, EPUB, etc. I will also discuss further details about the specialties of these packages and their potential applications. Limitations of Stata in producing dynamic documents "The Stata dofile and logfile provide good‐enough tools for reproducing the analysis. However, Stata logfile only includes text output and graphs are exported separately. Consequently, combining a graph to Stata output in a report has been a manual work. In addition, the possibility of adding text to explain the analysis results in Stata output is limited by the duplication problem. For example, a text paragraph that is printed using the display command gets duplicated in the logfile by appearing on the command and the command’s out‐ put. Therefore, writing a analysis document that requires graphs and outputs, as well as text for describing the analysis results has become a manual work which is unreproducible, laborious, time consuming, prone to human error, and boring." [2] .
    [Show full text]
  • Markdown Som Format För Digitalt Bevarande
    1 KARL PETTERSSON Markdown som format för digitalt bevarande Abstract: In the choice of file formats for preservation of text documents, there is a potential trade-off between preserving the integrity and usability of documents. This trade-off is first discussed in relation to four well- established formats: plain text, PDF/A, Office Open XML Document and Open Document Text. These formats are then compared with Markdown, a relatively new so-called lightweight markup language. It is concluded that no single format is optimal with respect to the trade-off problem, when it comes to preserving typical documents in a modern environment, with more or less complex formatting and document structure. Therefore, the feasiblity of using two or more formats for preservation of a single document (e.g. PDF/A combined with Markdown and/or Office Open XML) is discussed. It is necessary to weigh the importance of integrity and long-term usability against the costs of preserving documents in multiple formats. Keywords: Integrity, Usability, Text documents, Markup language Copyright: CC BY-NC-ND- 3.0 https://creativecommons.org/licenses/by- nc-nd/3.0/ 1Karl Pettersson har en masterexamen i ABM med inriktning arkivvetenskap. Han intresserar sig särskilt för frågor relaterade till digitalt bevarande och implementering av filformat och kan kontaktas på [email protected]. 4 Förkortningar i text CSL Citation Style Language. 12 HTML Hypertext Markup Language. 7–11 PDF Portable Document Format. 1, 3–6, 10, 12–15 XML Extensible Markup Language. 1, 3, 5, 6, 9–15 YAML YAML Ain’t Markup Language. 10, 11 Inledning En viktig fråga vid arkivhantering i dagens alltmer digitaliserade samhälle är vilka filformat som skall användas vid elektroniskt bevarande av olika typer av dokument, inte minst textdokument som produceras i exempelvis vanliga ordbehandlingsprogram.
    [Show full text]
  • Personal Knowledge Models with Semantic Technologies
    Max Völkel Personal Knowledge Models with Semantic Technologies Personal Knowledge Models with Semantic Technologies Max Völkel 2 Bibliografische Information Detaillierte bibliografische Daten sind im Internet über http://pkm. xam.de abrufbar. Covergestaltung: Stefanie Miller Herstellung und Verlag: Books on Demand GmbH, Norderstedt c 2010 Max Völkel, Ritterstr. 6, 76133 Karlsruhe This work is licensed under the Creative Commons Attribution- ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Fran- cisco, California, 94105, USA. Zur Erlangung des akademischen Grades eines Doktors der Wirtschaftswis- senschaften (Dr. rer. pol.) von der Fakultät für Wirtschaftswissenschaften des Karlsruher Instituts für Technologie (KIT) genehmigte Dissertation von Dipl.-Inform. Max Völkel. Tag der mündlichen Prüfung: 14. Juli 2010 Referent: Prof. Dr. Rudi Studer Koreferent: Prof. Dr. Klaus Tochtermann Prüfer: Prof. Dr. Gerhard Satzger Vorsitzende der Prüfungskommission: Prof. Dr. Christine Harbring Abstract Following the ideas of Vannevar Bush (1945) and Douglas Engelbart (1963), this thesis explores how computers can help humans to be more intelligent. More precisely, the idea is to reduce limitations of cognitive processes with the help of knowledge cues, which are external reminders about previously experienced internal knowledge. A knowledge cue is any kind of symbol, pattern or artefact, created with the intent to be used by its creator, to re- evoke a previously experienced mental state, when used. The main processes in creating, managing and using knowledge cues are analysed. Based on the resulting knowledge cue life-cycle, an economic analysis of costs and benefits in Personal Knowledge Management (PKM) processes is performed.
    [Show full text]
  • A Lion, a Head, and a Dash of YAML Extending Sphinx to Automate Your Documentation FOSDEM 2018 @Stephenfin Restructuredtext, Docutils & Sphinx
    A lion, a head, and a dash of YAML Extending Sphinx to automate your documentation FOSDEM 2018 @stephenfin reStructuredText, Docutils & Sphinx 1 A little reStructuredText ========================= This document demonstrates some basic features of |rst|. You can use **bold** and *italics*, along with ``literals``. It’s quite similar to `Markdown`_ but much more extensible. CommonMark may one day approach this [1]_, but today is not that day. `docutils`__ does all this for us. .. |rst| replace:: **reStructuredText** .. _Markdown: https://daringfireball.net/projects/markdown/ .. [1] https://talk.commonmark.org/t/444 .. __ http://docutils.sourceforge.net/ A little reStructuredText ========================= This document demonstrates some basic features of |rst|. You can use **bold** and *italics*, along with ``literals``. It’s quite similar to `Markdown`_ but much more extensible. CommonMark may one day approach this [1]_, but today is not that day. `docutils`__ does all this for us. .. |rst| replace:: **reStructuredText** .. _Markdown: https://daringfireball.net/projects/markdown/ .. [1] https://talk.commonmark.org/t/444 .. __ http://docutils.sourceforge.net/ A little reStructuredText This document demonstrates some basic features of reStructuredText. You can use bold and italics, along with literals. It’s quite similar to Markdown but much more extensible. CommonMark may one day approach this [1], but today is not that day. docutils does all this for us. [1] https://talk.commonmark.org/t/444/ A little more reStructuredText ============================== The extensibility really comes into play with directives and roles. We can do things like link to RFCs (:RFC:`2324`, anyone?) or generate some more advanced formatting (I do love me some H\ :sub:`2`\ O).
    [Show full text]
  • R Markdown: the Definitive Guide
    Yihui Xie, J. J. Allaire, Garrett Grolemund R Markdown: The Definitive Guide To Jung Jae-sung (1982 – 2018), a remarkably hard-working badminton player with a remarkably simple playing style Contents List of Tables xvii List of Figures xix Preface xxiii About the Authors xxxv I GetStarted 1 1 Installation 5 2 Basics 7 2.1 Example applications .................. 7 2.1.1 Airbnb’s knowledge repository ......... 7 2.1.2 Homework assignments on RPubs ....... 7 2.1.3 Personalized mail ................. 8 2.1.4 2017 Employer Health Benefits Survey ..... 8 2.1.5 Journal articles .................. 8 2.1.6 Dashboards at eelloo ............... 8 2.1.7 Books ....................... 8 2.1.8 Websites ...................... 8 2.2 Compile an R Markdown document .......... 8 2.3 Cheat sheets ....................... 9 2.4 Output formats ...................... 9 2.5 Markdown syntax .................... 9 2.5.1 Inline formatting ................. 9 2.5.2 Block-level elements ............... 9 2.5.3 Math expressions ................. 9 2.6 R code chunks and inline R code ............ 10 2.6.1 Figures ....................... 10 2.6.2 Tables ....................... 10 vii viii Contents 2.7 Other language engines ................. 10 2.7.1 Python ....................... 10 2.7.2 Shell scripts .................... 10 2.7.3 SQL ........................ 11 2.7.4 Rcpp ........................ 11 2.7.5 Stan ........................ 11 2.7.6 JavaScript and CSS ................ 11 2.7.7 Julia ........................ 11 2.7.8 CandFortran ................... 11 2.8 Interactive documents .................. 11 2.8.1 HTML widgets .................. 11 2.8.2 Shiny documents ................. 12 II Output Formats 13 3 Documents 17 3.1 HTML document ..................... 17 3.1.1 Table of contents ................
    [Show full text]
  • Python Documentation Generator
    SPHINX Python documentation generator Anna Ferrari - 29.06.2021 • Documentation of your python (an other languages like java, C++, R, PHP, javascript,….) code • Outputs in HTML, Latex, ePub, https://www.sphinx-doc.org/en/master/ others • Deploy on webpage (for example in ReadTheDocs) Python documentation https://docs.python.org/3/ • Python • Linux kernel • Conda • Flask • Matplotlib • Jupiter Notebook • Lasagne • Indico • Zenodo …. Result at https://simpleble.readthedocs.io/en/latest/ Let’s get started ! https://sphinx-rtd-tutorial.readthedocs.io/en/latest/docstrings.html Create a new folder called simpleble-master simpleble-master └── simpleble └── test.py test.py def sum_two_numbers(a, b): return a + b Add to test.py documentation: https://realpython.com/documenting-python-code/ def sum_two_numbers(a, b): ‘’’ This function add two numbers Args: a (float) : first number to add b (float) : second number to add Returns: float The sum of a and b ‘’‘ return a + b Install sphinx ReadTheDocs Theme Create documentation root directory Call sphinx quickstart to initialise the project Let’s modify the configuration file: Uncomment Add the theme for read the documents html_theme = "sphinx_rtd_theme" Add the visualisation of the source code extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode'] html_show_sourcelink = True Build the html file Now we have an html file, and if we double click we see it in the browser. It’s empty since we didn’t populated it yet. Auto-generate .rst file from python youruser@yourpc:~yourWorkspacePath/simpleble-master/docs$
    [Show full text]
  • CV for Giuseppe Silano
    Last update: August 5, 2021 Karlovo namesti 13 12135 Prague 2, Czech Republic H +420 22435 7634 B [email protected] Giuseppe Silano Í giuseppesilano.net gsilano u gsilano Curriculum Vitae Born in Benevento (Italy), on July 23, 1989 Education Nov 2020 Ph.D. Program in Information Technologies for Engineering, Group for Research on Automatic Control Engineering (GRACE), University of Sannio, Benevento, Italy. { Additional mention of Doctor Europaeus. { Research topics are in robotics, control, path planning and software-in-the-loop. { Supervisor: Prof. Dr. Luigi Iannelli. Mar 2019 – Nov 2019 Visiting Ph.D. student at Laboratoire d’Analyse et d’Architecture des Systèmes (LAAS), Robotics and Interactions (RIS) group, Centre Na- tional de la Recherche Scientifique (CNRS), Toulouse, France. { Control of full-actuated 6DoFs1 robots with onboard sensors. { Supervisor: Prof. Dr. Antonio Franchi. Mar 2016 Master of Science in Electronic Engineering, University of Sannio, Ben- evento, Italy. { Focus on robotics, control, electronics and telecommunication. Jul 2012 Bachelor of Science in Computer Engineering, University of Sannio, Ben- evento, Italy. { Focus on robotics, control, software, telecommunication and electronics. Feb 2012 – Jun 2012 Industrial Internship in Systems Engineering, Mosaico Monitoraggio In- tegrato S.r.l., Benevento, Italy. { Design a software production methodology using an Object Oriented (OO) ap- proach for Programmable Logic Controllers (PLCs). Professional Affiliation Dec 2016 – Today IEEE (Institute of Electrical and Electronic Engineers), Student Member. Dec 2016 – Today IEEE Control Systems Society, Student Member. Dec 2016 – Today IEEE Robotics and Automation Society, Student Member. Academic Appointments Jun 2020 – Today Postdoctoral Research Fellow, Multi-robot Systems Group (MRS), Czech Technical University in Prague, Prague, Czech Republic.
    [Show full text]
  • Package 'Ascii'
    Package ‘ascii’ September 17, 2020 Maintainer Mark Clements <[email protected]> License GPL (>= 2) Title Export R Objects to Several Markup Languages Type Package Description Coerce R object to 'asciidoc', 'txt2tags', 'restructuredText', 'org', 'textile' or 'pandoc' syntax. Package comes with a set of drivers for 'Sweave'. Version 2.4 URL https://github.com/mclements/ascii BugReports https://github.com/mclements/ascii/issues Date 2020-08-18 Depends R (>= 2.13), methods Imports utils, digest, codetools, survival, stats, grDevices Suggests Hmisc, xtable, R2HTML, knitr Collate 'asciiAnova.r' 'asciiDataFrame.r' 'asciiDefault.r' 'asciiDensity.r' 'asciiDescr.r' 'asciiEpi.r' 'asciiGlm.r' 'asciiHmisc.r' 'asciiHtest.r' 'asciiList.r' 'asciiLm.r' 'asciiMatrix.r' 'asciiMemisc.r' 'asciiPrcomp.r' 'asciiSmoothSpline.r' 'asciiSummaryTable.r' 'asciiSurvival.r' 'asciiTable.r' 'asciiTs.r' 'asciiVector.r' 'bind.r' 'cbind.r' 'export.r' 'generic.r' 'groups.r' 'interleave.r' 'paste.matrix.r' 'plim.r' 'print.character.matrix.r' 'RweaveAscii.r' 'show.asciidoc.r' 'show.org.r' 'show.pandoc.r' 'show.r' 'show.rest.r' 'show.t2t.r' 'show.textile.r' 'SweaveAscii.r' 'tocharac.r' 'weaverAscii.r' 'zzz.r' 'print.r' 'cache_expr.R' 'weaver.R' 'unexported.R' RoxygenNote 7.0.2 NeedsCompilation no Author David Hajage [aut], Mark Clements [cre, ctb], Seth Falcon [ctb], 1 2 ascii.anova Terry Therneau [ctb], Matti Pastell [ctb], Friedrich Leisch [ctb] Repository CRAN Date/Publication 2020-09-17 13:10:09 UTC R topics documented: ascii.anova . .2 asciiCbind-class . 23 Asciidoc . 23 asciiList-class . 24 asciiMixed-class . 25 asciiTable-class . 26 cbind.ascii . 26 convert............................................ 27 createreport . 28 fig.............................................. 30 out.............................................. 31 paragraph . 31 plim............................................. 32 print,asciiCbind-method .
    [Show full text]