Skip to content

Commit

Permalink
Merge pull request #1223 from szarnyasg/fence-generated-blocks
Browse files Browse the repository at this point in the history
Add warning in front of generated code blocks
  • Loading branch information
szarnyasg committed Sep 24, 2023
2 parents fe43398 + 164f9e9 commit 5a828f1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# DuckDB-Web scripts

## `generate_all_docs.sh`

### Prerequisites

Get the DuckDB nightly build from the [installation page](https://duckdb.org/docs/installation/), available under the GitHub main (Bleeding Edge) tab.

Install the NodeJS and Python dependencies:

```bash
npm install
pip install -r requirements.txt
```

### Running the script

Run the script as follows:

```bash
./scripts/generate_all_docs.sh <path_to_bleeding_edge_duckdb_dir>
```
2 changes: 1 addition & 1 deletion scripts/generate_all_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -xeuo pipefail

if [ "${1-}" = "" ]
then
echo >&2 "usage: $0 duckdb_dir"
echo >&2 "Usage: $0 duckdb_dir_with_debug_duckdb"
exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def replace_docs_in_file(file_name, group_name, docs_string_for_this_group):
text = (
text.rsplit(api_ref_split, 1)[0]
+ api_ref_split
+ '\n\n'
+ '\n\n<!-- This section is generated by scripts/generate_config_docs.py -->\n\n'
+ docs_string_for_this_group
)
found = True
Expand Down

0 comments on commit 5a828f1

Please sign in to comment.