diff --git a/.github/workflows/compile-legacy-workflow-documentation.yml b/.github/workflows/compile-legacy-workflow-documentation.yml deleted file mode 100644 index 8879384..0000000 --- a/.github/workflows/compile-legacy-workflow-documentation.yml +++ /dev/null @@ -1,44 +0,0 @@ -# This GitHub Actions workflow compiles the Sphinx documentation into web-based documentation. -# Reference: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions -name: Compile legacy workflow documentation into HTML - -on: - push: { branches: [ main ] } - workflow_dispatch: { } - # Allow this workflow to be called by other workflows. - # Reference: https://docs.github.com/en/actions/using-workflows/reusing-workflows - workflow_call: { } - -jobs: - compile: - name: Compile - runs-on: ubuntu-latest - defaults: - run: - # Set a default working directory for all `run` steps in this job. - # Reference: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_iddefaultsrun - working-directory: legacy/workflow-documentation - permissions: - contents: read - steps: - - name: Check out commit # Docs: https://github.com/actions/checkout - uses: actions/checkout@v4 - - name: Set up Python # Docs: https://github.com/actions/setup-python - uses: actions/setup-python@v5 - with: { python-version: '3.12' } - - name: Install Sphinx # Docs: https://pypi.org/project/Sphinx/ - run: pip install Sphinx - - name: Install other dependencies - run: pip install -r requirements.txt - - name: Compile source documents into HTML - run: sphinx-build -b html src ${{ github.workspace }}/legacy/workflow-documentation/_build/html - # Upload the result as an "artifact" so it can then be downloaded and used by another job. - - name: Save the HTML for publishing later # Docs: https://github.com/actions/upload-artifact - uses: actions/upload-artifact@v4 - with: - name: legacy-workflow-documentation-as-html - # Note: Relative `path` values here are relative to the _workspace_, not to the current working directory. - # Reference: https://github.com/actions/upload-artifact/pull/477#issue-2044900649 - path: legacy/workflow-documentation/_build/html - if-no-files-found: error - retention-days: 1 # Note: 1 day is the shortest period possible diff --git a/.github/workflows/deploy-to-gh-pages.yml b/.github/workflows/deploy-to-gh-pages.yml index dfc8674..4eeadd0 100644 --- a/.github/workflows/deploy-to-gh-pages.yml +++ b/.github/workflows/deploy-to-gh-pages.yml @@ -17,9 +17,6 @@ jobs: compile-legacy-nmdc-documentation: name: Compile legacy NMDC documentation uses: ./.github/workflows/compile-legacy-nmdc-documentation.yml - compile-legacy-workflow-documentation: - name: Compile legacy workflow documentation - uses: ./.github/workflows/compile-legacy-workflow-documentation.yml fetch-and-compile-nmdc-runtime-documentation: name: Fetch and compile NMDC Runtime documentation uses: ./.github/workflows/fetch-and-compile-nmdc-runtime-documentation.yml @@ -33,7 +30,6 @@ jobs: # Reference: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idneeds needs: - compile-legacy-nmdc-documentation - - compile-legacy-workflow-documentation - fetch-and-compile-nmdc-runtime-documentation - fetch-and-compile-mag-workflow-documentation runs-on: ubuntu-latest @@ -51,7 +47,6 @@ jobs: ls -R artifacts mkdir -p _build/html _build/html/legacy _build/html/workflows cp -R artifacts/legacy-nmdc-documentation-as-html _build/html/legacy/nmdc-documentation - cp -R artifacts/legacy-workflow-documentation-as-html _build/html/legacy/workflow-documentation cp -R artifacts/nmdc-runtime-documentation-as-html _build/html/nmdc-runtime-documentation cp -R artifacts/mag-workflow-documentation-as-html _build/html/workflows/mag-workflow-documentation cp content/index.html _build/html/index.html diff --git a/README.md b/README.md index 8f68dd4..cc8c4e9 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,6 @@ This repository contains the content that we compile into our * [Legacy content](#legacy-content) * [NMDC documentation](#nmdc-documentation) * [Omissions](#omissions) - * [Workflow documentation](#workflow-documentation) - * [Omissions](#omissions-1) * [Code](#code) * [Repository-level configuration files and documentation](#repository-level-configuration-files-and-documentation) * [GitHub Actions](#github-actions) @@ -83,33 +81,6 @@ git clone https://github.com/microbiomedata/NMDC_documentation.git /tmp/NMDC_doc git diff --stat /tmp/NMDC_documentation/docs ./legacy/nmdc-documentation/src ``` -#### Workflow documentation - -Most of the files in the `legacy/workflow-documentation` directory are files that we copied from -[commit `40b5a313`](https://github.com/microbiomedata/workflow_documentation/commit/40b5a313db29eefae896fa1cfd98530324e5c91a) -in the [workflow_documentation](https://github.com/microbiomedata/workflow_documentation) repository. -That was the latest commit on the `main` branch as of August 28, 2024. -This documentation is implemented within the [Sphinx](https://www.sphinx-doc.org) documentation framework. - -In addition to the files we copied, the directory also contains some files that are _exclusive_ to this repository; -e.g., `Dockerfile` and `.gitignore`. - -##### Omissions - -When copying the aforementioned files from the `workflow_documentation` repository, we _omitted_ files that were used -to fetch content from even higher upstream; i.e. from individual workflow repositories. - -You can compare the `legacy/workflow-documentation/src` directory with the corresponding directory in the -upstream repository, by following these steps: - -```shell -# Clone the upstream repository onto your computer. -git clone https://github.com/microbiomedata/workflow_documentation.git /tmp/workflow_documentation - -# Use Git to compare the corresponding directories. -git diff --stat /tmp/workflow_documentation/docs ./legacy/workflow-documentation/src -``` - ### Code > [!NOTE] diff --git a/content/index.html b/content/index.html index d69d7c2..b0adb6b 100644 --- a/content/index.html +++ b/content/index.html @@ -19,7 +19,6 @@