Parcourir la source

use of predefined folder

Jérôme BUISINE il y a 3 ans
Parent
commit
210b80762c
2 fichiers modifiés avec 11 ajouts et 2 suppressions
  1. 1 2
      .github/workflows/docs.yml
  2. 10 0
      docs/source/documentations/validator.rst

+ 1 - 2
.github/workflows/docs.yml

@@ -22,8 +22,7 @@ jobs:
     - name: Commit documentation changes
       run: |
         git clone https://github.com/jbuisine/macop.git --branch gh-pages --single-branch gh-pages
-        mkdir gh-pages/docs/_build
-        cp -r docs/build/html gh-pages/docs/_build
+        cp -r docs gh-pages/docs
         cd gh-pages
         touch .nojekyll
         git config --local user.email "action@github.com"

+ 10 - 0
docs/source/documentations/validator.rst

@@ -7,7 +7,17 @@ It is based on a defined function taking a solution as input and returning the v
 4.1. Validator definition
 ~~~~~~~~~~~~~~~~~~~~~~~~~
 
+An invalid solution can be shown below where the sum of the object weights is greater than 15:
 
+.. image:: ../_static/documentation/project_knapsack_invalid.png
+   :width:  800 px
+   :align: center
+
+.. code-block::
+
+
+
+Hence, ``[1, 0, 1, 0, 0]`` is an invalid solution.
 
 .. code-block:: python