فهرست منبع

Copy diagram files before building docs

Arkadiusz Ryś 2 سال پیش
والد
کامیت
4e0133a7ab
4فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 2 0
      .gitignore
  2. 2 1
      .gitlab-ci.yml
  3. 1 1
      docs/diagrams.rst
  4. 1 0
      tasks.py

+ 2 - 0
.gitignore

@@ -7,3 +7,5 @@ dist/
 
 *.log
 .idea
+
+docs/system.drawio

+ 2 - 1
.gitlab-ci.yml

@@ -58,7 +58,8 @@ deploy-docs:
   script:
     - export DISPLAY=:0
     - pip install -U -r requirements.txt
-    - python3 -m sphinx docs public
+    #- python3 -m sphinx docs public
+    - inv docs --output-directory=public
   artifacts:
     paths:
       - public

+ 1 - 1
docs/diagrams.rst

@@ -14,7 +14,7 @@
 
    Process Model for the tuning workflow of a spring-mass-damper.
 
-.. drawio-figure:: ../damper/system.drawio
+.. drawio-figure:: ./system.drawio
    :format: svg
    :page-index: 1
    :align: center

+ 1 - 0
tasks.py

@@ -15,6 +15,7 @@ def lint(c):
 @task(name="docs", aliases=("html", "documentation"))
 def docs_html(c, output_directory="build/html"):
     """Build the documentation in HTML form."""
+    c.run(f"cp damper/system.drawio docs/system.drawio")
     c.run(f"python3 -m sphinx docs {output_directory}")