Skip to content

Commit 3ecd50c

Browse files
authored
feat: auto-sync docs wiki into docs/wiki/ on container start (#12351)
1 parent 50ea53e commit 3ecd50c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@ android.keystore
5050
# Ignore checksum file if it’s generated during build
5151
manifest-checksum.txt
5252
.beads
53+
54+
# Auto-synced docs wiki (cloned by docker/ol-home-start.sh)
55+
docs/wiki/

docker/ol-home-start.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
#!/bin/bash
22

3+
# Clone or update docs wiki so developers and AI assistants can search
4+
# documentation locally without switching to the browser.
5+
if [ -d "/openlibrary/docs/wiki/.git" ]; then
6+
echo "Updating docs wiki..."
7+
cd /openlibrary/docs/wiki && git pull --ff-only
8+
else
9+
echo "Cloning docs wiki..."
10+
git clone https://github.com/internetarchive/openlibrary.wiki.git /openlibrary/docs/wiki
11+
fi
12+
cd /openlibrary
13+
314
make reindex-solr

0 commit comments

Comments
 (0)