Skip to content

Commit

Permalink
revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
valbuenahector committed Aug 5, 2024
1 parent e9794a1 commit bacc7c0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 18 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/.readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 3 additions & 5 deletions docs/class3/module1/module00.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
<!DOCTYPE html>
<html>
Expand Down Expand Up @@ -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
Expand Down
14 changes: 1 addition & 13 deletions docs/class3/module1/module01.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~~~~~~~

Expand Down

0 comments on commit bacc7c0

Please sign in to comment.