Skip to content

Commit ff6a5ce

Browse files
committed
fix: wiki turn off
1 parent 094326f commit ff6a5ce

File tree

1 file changed

+52
-50
lines changed

1 file changed

+52
-50
lines changed

bin/wiki.sh

+52-50
Original file line numberDiff line numberDiff line change
@@ -14,54 +14,56 @@
1414
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1515
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1616
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17-
# Update docs
18-
npm run wiki
19-
20-
# Flatten docs structure
21-
cd wiki
22-
originalPaths=$(find . -mindepth 2 -type f)
23-
find . -mindepth 2 -type f -exec mv {} . \;
24-
find . -type d -empty -delete
25-
26-
# Strip out folder structure from links to support Github Wiki
27-
while read -r line; do
28-
# Remove leading ./ from each file name
29-
line=$(sed "s|^./||" <<< ${line})
30-
trimmedLine=$(sed "s|.*/||" <<< ${line})
31-
sed -i '' -e "s|${line}|${trimmedLine}|" *
32-
sed -i '1d;2d' $(basename "${line}")
33-
done <<< "$originalPaths"
34-
35-
rm -f README.md
36-
37-
# Strip out .md from raw text to support Github Wiki
38-
sed -i -e 's/.md//' *
39-
40-
sed -i '1d;2d' globals.md
41-
sed -i "s/globals#/#/g" globals.md
42-
mv globals.md Home.md
4317

44-
# Return to <project>
45-
cd ../
46-
47-
# Clone Wiki Repo
48-
cd ../
49-
if [[ -d pg-pubsub.wiki ]]; then
50-
cd pg-pubsub.wiki
51-
git pull
52-
cd ../
53-
else
54-
git clone https://github.com/imqueue/pg-pubsub.wiki
55-
fi
56-
57-
# Copy docs into wiki repo
58-
cp -a pg-pubsub/wiki/. pg-pubsub.wiki
59-
60-
# Create commit and push in wiki repo
61-
cd pg-pubsub.wiki
62-
git add -A
63-
git commit -m "Wiki docs update"
64-
git push
65-
66-
cd ../pg-pubsub
67-
npm run clean
18+
# Update docs
19+
exit 0
20+
#npm run wiki
21+
#
22+
## Flatten docs structure
23+
#cd wiki
24+
#originalPaths=$(find . -mindepth 2 -type f)
25+
#find . -mindepth 2 -type f -exec mv {} . \;
26+
#find . -type d -empty -delete
27+
#
28+
## Strip out folder structure from links to support Github Wiki
29+
#while read -r line; do
30+
# # Remove leading ./ from each file name
31+
# line=$(sed "s|^./||" <<< ${line})
32+
# trimmedLine=$(sed "s|.*/||" <<< ${line})
33+
# sed -i '' -e "s|${line}|${trimmedLine}|" *
34+
# sed -i '1d;2d' $(basename "${line}")
35+
#done <<< "$originalPaths"
36+
#
37+
#rm -f README.md
38+
#
39+
## Strip out .md from raw text to support Github Wiki
40+
#sed -i -e 's/.md//' *
41+
#
42+
#sed -i '1d;2d' globals.md
43+
#sed -i "s/globals#/#/g" globals.md
44+
#mv globals.md Home.md
45+
#
46+
## Return to <project>
47+
#cd ../
48+
#
49+
## Clone Wiki Repo
50+
#cd ../
51+
#if [[ -d pg-pubsub.wiki ]]; then
52+
# cd pg-pubsub.wiki
53+
# git pull
54+
# cd ../
55+
#else
56+
# git clone https://github.com/imqueue/pg-pubsub.wiki
57+
#fi
58+
#
59+
## Copy docs into wiki repo
60+
#cp -a pg-pubsub/wiki/. pg-pubsub.wiki
61+
#
62+
## Create commit and push in wiki repo
63+
#cd pg-pubsub.wiki
64+
#git add -A
65+
#git commit -m "Wiki docs update"
66+
#git push
67+
#
68+
#cd ../pg-pubsub
69+
#npm run clean

0 commit comments

Comments
 (0)