forked from johnsimons/docs.geteventstore.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·30 lines (21 loc) · 1.07 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Clean up needed repos and folders
rm -dfr ./obj && rm -dfr ./_site && rm -dfr ./code-examples/dotnet-client && rm -dfr ./code-examples/jvm-client
git clone --recurse-submodules -b oss-v5.0.8 [email protected]:EventStore/EventStore.git ../EventStore
git clone [email protected]:EventStore/EventStore.Samples.Dotnet.git ../EventStore.Samples.Dotnet
git clone [email protected]:EventStore/es-docs-template.git ../es-docs-template
git clone [email protected]:EventStore/EventStore.Samples.Java.git ../EventStore.Samples.Java
# Move example files needed
mkdir ./code-examples/dotnet-client && mkdir ./code-examples/jvm-client
cp ../EventStore.Samples.Dotnet/DocsExample/Program.cs ./code-examples/dotnet-client/
cp ../EventStore.Samples.Java/src/main/java/org/eventstore/sample/*.java ./code-examples/jvm-client/
docfx metadata
docfx build docfx.json --force
# TODO: To GitHub?
# Minify
minify -o ../eventstore.com/docs/styles ../eventstore.com/docs/styles
# Tidy up
rm -dfr ../EventStore
rm -dfr ../EventStore.Samples.Dotnet
rm -dfr ../es-docs-template
rm -dfr ../EventStore.Samples.Java