Skip to content

Commit 90cffac

Browse files
committed
Own directory for documentation generation scripts
1 parent 117a822 commit 90cffac

10 files changed

+17
-17
lines changed

.github/workflows/cypher-reference-documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Generate cypher reference document
3131
working-directory: cypher
3232
run: |
33-
./../scripts/generateCypherReference.sh
33+
./../scripts/documentation/generateCypherReference.sh
3434
3535
- name: Archive generated cypher reference document
3636
uses: actions/upload-artifact@v3

.github/workflows/environment-variables-reference-documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Generate environment variables reference document
3131
working-directory: scripts
3232
run: |
33-
./generateEnvironmentVariablesReference.sh
33+
./documentation/generateEnvironmentVariablesReference.sh
3434
3535
- name: Archive generated environment variables reference document
3636
uses: actions/upload-artifact@v3

.github/workflows/scripts-reference-documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Generate scripts reference document
3131
working-directory: scripts
3232
run: |
33-
./generateScriptReference.sh
33+
./documentation/generateScriptReference.sh
3434
3535
- name: Archive generated scripts reference document
3636
uses: actions/upload-artifact@v3

COMMANDS.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,37 +104,37 @@ without report generation use this command:
104104
105105
### Update Cypher Reference
106106
107-
Change into the [cypher](./cypher/) directory e.g. with `cd cypher` and then execute the script [generateCypherReference.sh](./scripts/generateCypherReference.sh) with the following command:
107+
Change into the [cypher](./cypher/) directory e.g. with `cd cypher` and then execute the script [generateCypherReference.sh](./scripts/documentation/generateCypherReference.sh) with the following command:
108108
109109
```script
110-
./../scripts/generateCypherReference.sh
110+
./../scripts/documentation/generateCypherReference.sh
111111
```
112112
113113
### Update Script Reference
114114
115-
Change into the [scripts](./scripts/) directory e.g. with `cd scripts` and then execute the script [generateScriptReference.sh](./scripts/generateScriptReference.sh) with the following command:
115+
Change into the [scripts](./scripts/) directory e.g. with `cd scripts` and then execute the script [generateScriptReference.sh](./scripts/documentation/generateScriptReference.sh) with the following command:
116116
117117
```script
118-
./generateScriptReference.sh
118+
./documentation/generateScriptReference.sh
119119
```
120120
121121
### Update Jupyter Notebook Markdown Report Reference
122122
123-
Change into the [results](./results/) directory e.g. with `cd results` and then execute the script [generateJupyterReportsReference.sh](./scripts/generateJupyterReportsReference.sh) with the following command:
123+
Change into the [results](./results/) directory e.g. with `cd results` and then execute the script [generateJupyterReportsReference.sh](./scripts/documentation/generateJupyterReportsReference.sh) with the following command:
124124
125125
👉**Note:** This script is automatically triggered at the end of [copyReportsIntoResults.sh](./scripts/copyReportsIntoResults.sh)
126126
which is included in the pipeline [code-structure-analysis.yml](.github/workflows/code-structure-analysis.yml) and doesn't need to be executed manually normally.
127127

128128
```script
129-
./../scripts/generateJupyterReportsReference.sh
129+
./../scripts/documentation/generateJupyterReportsReference.sh
130130
```
131131

132132
### Update Environment Variable Reference
133133

134-
Change into the [scripts](./scripts/) directory e.g. with `cd scripts` and then execute the script [generateEnvironmentVariablesReference.sh](./scripts/generateEnvironmentVariablesReference.sh) with the following command:
134+
Change into the [scripts](./scripts/) directory e.g. with `cd scripts` and then execute the script [generateEnvironmentVariablesReference.sh](./scripts/documentation/generateEnvironmentVariablesReference.sh) with the following command:
135135

136136
```script
137-
./generateEnvironmentVariablesReference.sh
137+
./documentation/generateEnvironmentVariablesReference.sh
138138
```
139139

140140
## Manual Setup

scripts/copyReportsIntoResults.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ for report_source_folder in **/"${REPORTS_DIRECTORY}"; do
4141
done
4242

4343
# Generate REPORTS.md containing a reference to all Jupyter Notebook Markdown reports in the "results" directory and its subdirectories.
44-
(cd "./../${RESULTS_DIRECTORY}" && exec "${SCRIPTS_DIR}/generateJupyterReportReference.sh")
44+
(cd "./../${RESULTS_DIRECTORY}" && exec "${SCRIPTS_DIR}/documentation/generateJupyterReportsReference.sh")

scripts/generateCypherReference.sh renamed to scripts/documentation/generateCypherReference.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ markdown_file="CYPHER.md"
1111
echo ""
1212
echo "This document serves as a reference for all Cypher files in the current directory and its subdirectories."
1313
echo "It provides a table listing each Cypher file and its corresponding description found in the first comment line."
14-
echo "This file was generated with the script [generateCypherReference.sh](./../scripts/generateCypherReference.sh)."
14+
echo "This file was generated with the script [generateCypherReference.sh](./../scripts/documentation/generateCypherReference.sh)."
1515
echo ""
1616
echo "Script | Directory | Description"
1717
echo "-------|-----------|------------"

scripts/generateEnvironmentVariablesReference.sh renamed to scripts/documentation/generateEnvironmentVariablesReference.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
# Even if $BASH_SOURCE is made for Bourne-like shells it is also supported by others and therefore here the preferred solution.
99
# CDPATH reduces the scope of the cd command to potentially prevent unintended directory changes.
1010
# This way non-standard tools like readlink aren't needed.
11-
SCRIPTS_DIR=${SCRIPTS_DIR:-$( CDPATH=. cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P )} # Repository directory containing the shell scripts
12-
echo "generateEnvironmentVariablesReference: SCRIPTS_DIR=${SCRIPTS_DIR}"
11+
DOCUMENTATION_SCRIPTS_DIR=${DOCUMENTATION_SCRIPTS_DIR:-$( CDPATH=. cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P )} # Repository directory containing the documentation generation scripts
12+
echo "generateEnvironmentVariablesReference: DOCUMENTATION_SCRIPTS_DIR=${DOCUMENTATION_SCRIPTS_DIR}"
1313

1414
# Loop through all script files in the current directory
1515
find . -type f -name "*.sh" | sort | while read -r scriptFile; do
1616
echo "generateEnvironmentVariablesReference: Searching for environment variables in ${scriptFile}"
17-
source "${SCRIPTS_DIR}/appendEnvironmentVariables.sh" "${scriptFile}"
17+
source "${DOCUMENTATION_SCRIPTS_DIR}/appendEnvironmentVariables.sh" "${scriptFile}"
1818
done

scripts/generateJupyterReportsReference.sh renamed to scripts/documentation/generateJupyterReportsReference.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ markdown_file="JUPYTER_REPORTS.md"
1111
echo ""
1212
echo "This document serves as a reference for all Jupyter Notebook reports in the current directory and its subdirectories."
1313
echo "It provides a table listing each file and its corresponding description found in the first header line."
14-
echo "This file was generated with the script [generateMarkdownReference.sh](./../scripts/generateMarkdownReference.sh)."
14+
echo "This file was generated with the script [generateMarkdownReference.sh](./../scripts/documentation/generateMarkdownReference.sh)."
1515
echo ""
1616
echo "Report | Analysis | Description"
1717
echo "-------|----------|------------"

0 commit comments

Comments
 (0)