diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..8dc896221 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,28 @@ +name: Build Docs + +on: + - push + - pull_request + +defaults: + run: + working-directory: docs + +jobs: + build: + name: build-docs + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@v3.3.0 + + - name: Set up Python + uses: actions/setup-python@v4.6.1 + with: + python-version: 3.11 + - name: Pip Install + run: | + pip install -r requirements.txt + - name: Build + run: | + ./bin/build --ci diff --git a/.github/workflows/slack_notify.yml b/.github/workflows/slack_notify.yml index f3c640752..886f968ad 100644 --- a/.github/workflows/slack_notify.yml +++ b/.github/workflows/slack_notify.yml @@ -2,7 +2,7 @@ name: Slack Notification on: workflow_run: - workflows: ["Backend Tests", "Frontend Tests", "Docker Image For Main Builds", "Release Builds"] + workflows: ["Backend Tests", "Frontend Tests", "Docker Image For Main Builds", "Release Builds", "Build Docs"] types: [completed] jobs: diff --git a/docs/bin/build b/docs/bin/build new file mode 100755 index 000000000..c8fa07819 --- /dev/null +++ b/docs/bin/build @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +function error_handler() { + >&2 echo "Exited with BAD EXIT CODE '${2}' in ${0} script at line: ${1}." + exit "$2" +} +trap 'error_handler ${LINENO} $?' ERR +set -o errtrace -o errexit -o nounset -o pipefail + +run_ci="false" +if grep -qE -- "--ci\>" <<<"$@" ; then + run_ci="true" +fi + +rm -rf _build/html + +sphinx_command="sphinx-autobuild" +if [[ "$run_ci" == "true" ]]; then + sphinx_command="sphinx-build" +fi + +#>> sphinx-build --help 2>&1 | grep -E '^ +\-[aWn]\>' +# -a write all files (default: only write new and changed +# -j N build in parallel with N processes where possible +# -n nit-picky mode, warn about all missing references +# -W turn warnings into errors +"$sphinx_command" . _build/html -W -a -n -j auto diff --git a/docs/how_to/find_an_Instance_assigned_to_myself.md b/docs/how_to/find_an_Instance_assigned_to_myself.md index cfc28eb26..866adea37 100644 --- a/docs/how_to/find_an_Instance_assigned_to_myself.md +++ b/docs/how_to/find_an_Instance_assigned_to_myself.md @@ -31,9 +31,3 @@ If the Instance can not be find by searhing the list, follow these steps to sear [How to find an Instance assigned to someone else](https://github.com/sartography/spiff-arena/blob/main/docs/how_to/find_an_Instance_assigned_to_someone_else.md) -## **Outcome** - -| ✅ Success | 🚫 Error | -| ------------------------------------------------------------ | :------------------------------------------------------------ | -| The system will then display the parent process that contains the active instance searched for. [How to view process variables](https://github.com/sartography/spiff-arena/blob/main/docs/how_to/view_process_variables.md) | Process instance Id does not exist ![suspend_status](images\process_instance_not_found.png) Repeat Step 2 with correct Id. Note: if the instance is not active anymore, you should be able to search for it.| - diff --git a/docs/how_to/navigate_to_an_active_process_instance.md b/docs/how_to/navigate_to_an_active_process_instance.md index 29f45fe00..bedbeab23 100644 --- a/docs/how_to/navigate_to_an_active_process_instance.md +++ b/docs/how_to/navigate_to_an_active_process_instance.md @@ -48,10 +48,7 @@ If the desired task or process you would like to view is not found in the parent A pop-up menu will appear. Select ‘View Call Activity Diagram’ to navigate to the sub-process. -```{image} images/call_activity_popup.png - - ---- +![Untitled](images/call_activity_popup.png) ## **Outcome** diff --git a/docs/how_to/resume_a_process.md b/docs/how_to/resume_a_process.md index 96e0d9c3b..07af13cfa 100644 --- a/docs/how_to/resume_a_process.md +++ b/docs/how_to/resume_a_process.md @@ -4,5 +4,4 @@ | ⚙ How do I get there \| Menu hierarchy | | --- | | Find an **active** Process Instance | ---- diff --git a/docs/how_to/view_process_variables.md b/docs/how_to/view_process_variables.md index 96e0d9c3b..07af13cfa 100644 --- a/docs/how_to/view_process_variables.md +++ b/docs/how_to/view_process_variables.md @@ -4,5 +4,4 @@ | ⚙ How do I get there \| Menu hierarchy | | --- | | Find an **active** Process Instance | ---- diff --git a/docs/index.md b/docs/index.md index d4e2ae021..f79880cb8 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,8 +1,9 @@ # Welcome to SpiffWorkflow's documentation ```{toctree} -:maxdepth: 2 +:maxdepth: 3 :caption: Getting Started +UsingSpiffdemo/Getting_Started.md learn_basics/learn_basics.md quick_start/quick_start.md ``` @@ -51,6 +52,20 @@ learn_basics/bpmn_terminology.md ``` +```{toctree} +:maxdepth: 3 +:caption: Fix me unlinked files +how_to/complete_a_task_on_behalf_of_another_user.md +how_to/edit_process_variables.md +how_to/find_an_Instance_assigned_to_myself.md +how_to/find_an_Instance_assigned_to_someone_else.md +how_to/navigate_to_an_active_process_instance.md +how_to/resume_a_process.md +how_to/suspend_a_process.md +how_to/view_process_variables.md +spiffworkflow/process_instance.md +``` + ## Indices and tables diff --git a/docs/learn_basics/learn_basics.md b/docs/learn_basics/learn_basics.md index 83fd82b81..71bfae53a 100644 --- a/docs/learn_basics/learn_basics.md +++ b/docs/learn_basics/learn_basics.md @@ -36,7 +36,7 @@ Tasks represent activities or work that needs to be performed as part of a proce | **Task** | **Symbol** | **Description** | |---------------|------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Service |![Untitled](images/Service_task.png) | Task that uses a Web service, an automated application, or other kinds of service in completing the task. | +| Service |