Skip to content

Commit 315b3bd

Browse files
committed
docs: cleanup documentation files
1 parent b5faf4f commit 315b3bd

File tree

4 files changed

+71
-24
lines changed

4 files changed

+71
-24
lines changed

dev/docs.sh

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/bin/bash
2+
3+
# Script for working with documentation (./docs folder).
4+
# These commands are simple, but after a few weeks off everyone will forget them,
5+
# so this script is a lifesaver
6+
7+
function print_help {
8+
cat <<EOF
9+
Usage: $0 [--help] COMMAND
10+
11+
Wrapper around mkdocs to manage documentation folder.
12+
13+
--help - show this help message
14+
15+
COMMAND is an action to perform:
16+
build - only build documentation
17+
serve - build documentation and start local server
18+
deploy - build documentation and deploy it to github pages
19+
20+
21+
Examples: $0 build
22+
$0 deploy
23+
$0 --help
24+
EOF
25+
}
26+
27+
if [[ "$1" == "--help" || "$1" == "-h" ]]; then
28+
print_help
29+
exit 0
30+
fi
31+
32+
# Normalize directory - root of repository
33+
cd -- "$(dirname "${BASH_SOURCE[0]:-$0}")/.."
34+
35+
# mkdocs is a python tool
36+
source .venv/bin/activate
37+
38+
if [[ "$1" == "build" || "$1" == "b" ]]; then
39+
mkdocs build --strict
40+
elif [[ "$1" == "serve" || "$1" == "s" ]]; then
41+
mkdocs serve -o
42+
elif [[ "$1" == "deploy" || "$1" == "d" ]]; then
43+
mkdocs gh-deploy
44+
else
45+
echo "unknown command $1"
46+
exit 1
47+
fi

dev/gif-converter.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# This uses FFMPEG with palette generation (for more
55
# beautiful picture)
66

7-
# Exit on first error + Echo all commands
8-
97
function print_help {
108
echo "Usage: $0 VIDEO_FILE [OUTPUT_FILE]
119
@@ -22,6 +20,7 @@ if [[ "$1" == "--help" || $1 == "-h" ]]; then
2220
exit 0
2321
fi
2422

23+
# Exit on first error + Echo all commands
2524
set -ex
2625
VIDEO_FILE="$1"
2726

docs/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ During debug session separate view `PG Variables` shows contents of variables wi
2121
- `bitmapword`
2222
- `XLogRecPtr`
2323
- `RelFileLocator`
24-
24+
- Show attribute values of `TupleTableSlot`
25+
2526
![Variables view](./img/overview.gif)
2627

2728
You can define your own custom types, i.e. your own array variable using [configuration file](./configuration.md).

docs/vscode_setup.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,26 @@ PostgreSQL has different test types. One of them is TAP-tests which are written
3232

3333
Example, [Perl](https://marketplace.visualstudio.com/items?itemName=richterger.perl) extension.
3434

35-
> If you have chosen extension above, then you should know, that this extension caches parsed `*.pl` files and stores them in `.vscode/perl-lang` directory (can be changed in settings).
36-
> Such behavior can interfere with other IDE functions (i.e. file search) or slow down performance, so you should add this folder to excludes.
37-
> Sample configuration can look like this (`settings.json`):
38-
>
39-
> ```json
40-
> {
41-
> // Exclude from search output list
42-
> "search.exclude": {
43-
> "**/.vscode/perl-lang": true
44-
> },
45-
> // Exclude from tracked FS events
46-
> "files.watcherExclude": {
47-
> "**/.vscode/perl-lang": true
48-
> },
49-
> // Do not even show this directory in explorer
50-
> "files.exclude": {
51-
> "**/.vscode/perl-lang": true
52-
> }
53-
> }
54-
> ```
35+
If you have chosen extension above, then you should know, that this extension caches parsed `*.pl` files and stores them in `.vscode/perl-lang` directory (can be changed in settings).
36+
Such behavior can interfere with other IDE functions (i.e. file search) or slow down performance, so you should add this folder to excludes.
37+
Sample configuration can look like this (`settings.json`):
38+
39+
```json
40+
{
41+
// Exclude from search output list
42+
"search.exclude": {
43+
"**/.vscode/perl-lang": true
44+
},
45+
// Exclude from tracked FS events
46+
"files.watcherExclude": {
47+
"**/.vscode/perl-lang": true
48+
},
49+
// Do not even show this directory in explorer
50+
"files.exclude": {
51+
"**/.vscode/perl-lang": true
52+
}
53+
}
54+
```
5555

5656
### Markdown
5757

@@ -206,7 +206,7 @@ C/C++ extension has special configuration for debugging CoreDump:
206206
"version": "0.2.0",
207207
"configurations": [
208208
{
209-
"name": "pg_ctl",
209+
"name": "CoreDump",
210210
"type": "cppdbg",
211211
"request": "launch",
212212
"program": "${workspaceFolder}/src/backend/postgres",

0 commit comments

Comments
 (0)