diff --git a/.github/workflows/.readthedocs.yaml b/.github/workflows/.readthedocs.yaml new file mode 100644 index 00000000..015eb5de --- /dev/null +++ b/.github/workflows/.readthedocs.yaml @@ -0,0 +1,19 @@ +# Read the Docs configuration file for MkDocs projects +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.12" + +mkdocs: + configuration: mkdocs.yml + +# Optionally declare the Python requirements required to build your docs +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/class3/module1/module00.rst b/docs/class3/module1/module00.rst index 50287610..99a8fcfd 100644 --- a/docs/class3/module1/module00.rst +++ b/docs/class3/module1/module00.rst @@ -15,11 +15,9 @@ This command first downloads the nginx image (if we don't already have it) boots Now let's test our new NGINX container: .. code-block:: shell - curl localhost - -Result -.. code-block:: shell + :emphasize-lines: 1 + curl localhost @@ -90,7 +88,7 @@ Lab Guidance Make sure you stay in the njs-examples directory (as shown above) for all of your labs while running Docker commands. -Using Docker to start each lab requires many command line options. We will make things easier by using an environment variable to select the lab we will work on so we only have to type the docker command in once and then reuse it from command line history. For example, to start the lab named hello: +Using Docker to start each lab requires many command line options. We will make things easier y using an environment variable to select the lab we will work on so we only have to type the docker command in once and then reuse it from command line history. For example, to start the lab named hello: .. code-block:: shell diff --git a/docs/class3/module1/module01.rst b/docs/class3/module1/module01.rst index ebb18dd8..d80f44d6 100644 --- a/docs/class3/module1/module01.rst +++ b/docs/class3/module1/module01.rst @@ -13,29 +13,17 @@ As is customary for any programming class, our first lab outputs "Hello World!" **Step 2:** Now let's use curl to test our NGINX server: -Command .. code-block:: none + :emphasize-lines: 1,4,7 curl http://localhost/ - -Result -.. code-block:: none Hello world! -Command -.. code-block:: none - curl http://localhost/version - -Result -.. code-block:: none 0.5.3 -Command -.. code-block:: none docker stop njs_example - Code Snippets ~~~~~~~~~~~~~