:orphan: |rss_image| **automation - 1/1** :ref:`Blog ` :ref:`notebook (8) ` :ref:`sphinx (13) ` .. |rss_image| image:: feed-icon-16x16.png :target: ../_downloads/rss.xml :alt: RSS ---- .. index:: automation .. _ap-cat-automation-0: automation - 1/1 ++++++++++++++++ .. blogpostagg:: :title: Major changes :date: 2016-09-03 :keywords: Jenkins,documentation :categories: automation :rawfile: 2016/2016-09-03_major_changes.rst I now use YAML to define a build script. See `.local.jenkins.win.yml `_. I did not expect that to be so long but it did not scale anymore. So the process is basically to run a script which interprets the file `.local.jenkins.win.yml `_ as a series of `Jenkins `_ jobs. Unfortunately, I discovered many issues for some modules refusing to work from a virtual environment on Windows. It starts by running function :func:`setup_jenkins_server_yml `. The rest is pressing buttons. .. blogpostagg:: :title: Convert a notebook into slides :date: 2015-05-16 :keywords: script,notebook,slides,add_tag_slide :categories: notebook,automation :rawfile: 2015/2015-05-16_notebook_in_slides.rst I thought it would be easy to convert a notebook into slides. I would just have to execute `nbconvert `_. I went through two issues. The first one came from `reveal.js `_. My first tries did not work. I decided to take the version included in the module `sphinxjp.themes.revealjs `_ and I also updated the output of *nbconvert* to remove external links as much as possible. ... .. blogpostagg:: :title: Add a custom menu to the notebook :date: 2015-05-14 :keywords: script,menu :categories: notebook,automation :rawfile: 2015/2015-05-14_menu_notebook.rst The function :func:`add_notebook_menu ` add HTML and Javascript to the notebook to create links to all sections in the notebook:: ... .. blogpostagg:: :title: Create a script to read this blog :date: 2015-05-10 :keywords: script :categories: automation,blog :rawfile: 2015/2015-05-10_blog_script.rst The module now includes a function :func:`write_module_scripts ` creates a script *auto_rss_server.py* which grabs the latest blog post from this stream, runs a server and opens the default browser to read them. It uses the module `pyrsslocal `_. Here is the code to read this blog:: ... .. blogpostagg:: :title: Frequent commands and automation :date: 2015-05-06 :keywords: command line,batch files :categories: automation,setup :rawfile: 2015/2015-05-06_build_script.rst The script ``setup.py`` accepts several options such as ``install`` or ``build``. It also accepts ``unittest`` to run the unit tests or ``build_sphinx`` to build the documentation. It usually requires to have a command line windows opened as well as an editor to write programs. On Windows, the module now produces a series of scripts to automate tasks such as running the unit tests, building the documentation. They are not included in the sources anymore but the can be obtained by typing:: ... ---- |rss_image| **automation - 1/1** :ref:`2020-08 (2) ` :ref:`2020-09 (1) ` :ref:`2021-01 (1) ` :ref:`2022-03 (1) ` :ref:`2023-05 (1) `