This repository was archived by the owner on Jun 2, 2020. It is now read-only.
File tree 3 files changed +25
-5
lines changed
3 files changed +25
-5
lines changed Original file line number Diff line number Diff line change
1
+ node_modules /
1
2
public /
2
3
tmp /
3
4
themes /material /original /
Original file line number Diff line number Diff line change 27
27
28
28
## Developing the site
29
29
30
- * [ Install Hugo] ( https://gohugo.io/ )
31
- * In the root directory, run ` hugo server `
30
+ ### One-Time Setup
31
+
32
+ 1 . [ Install Hugo] ( https://gohugo.io/ )
33
+ 2 . Install [ AEgir] ( https://www.npmjs.com/package/aegir )
34
+
35
+ ``` sh
36
+ npm install -g aegir
37
+ ```
38
+
39
+ 3. Download IPFS libraries and tools (e.g. go-ipfs, js-ipfs) and generate their documentation:
40
+
41
+ ` ` ` sh
42
+ make packages
43
+ ` ` `
44
+
45
+ (Repeat this step anytime a package with autogenerated documentation has a new release.)
46
+
47
+
48
+ # ## Build and Run the Site
49
+
50
+ * In the root directory, run ` make serve`
32
51
* Load http://localhost:1313 in your web browser
33
52
* Edit and add things!
34
53
Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ baseurl="$4"
24
24
25
25
echo " --- building docs for $name ($basedir /$name )"
26
26
27
- if echo " $name " | grep -P ' ^go-' > /dev/null; then
27
+ if echo " $name " | grep ' ^go-' > /dev/null; then
28
28
29
29
# Go: get the source, run godoc2md
30
30
#
31
31
# TODO also render subdirectories
32
32
export GOPATH=" $( pwd) /tmp/gopath"
33
- go get " $repo " | & grep -v ' unrecognized import path' || true
33
+ go get " $repo " 2>&1 | grep -v ' unrecognized import path' || true
34
34
(cd " $GOPATH /src/$repo " && git clean -fdxq && git fetch -q && git reset -q --hard " $ref " )
35
35
mkdir -p " $basedir /$name "
36
36
cat << EOF > "$basedir /$name /index.md"
@@ -42,7 +42,7 @@ url = "$baseurl/$name"
42
42
43
43
EOF
44
44
godoc2md -v -template scripts/go-pkg.md " $repo " >> " $basedir /$name /index.md"
45
- elif echo " $name " | grep -P ' ^js-' > /dev/null; then
45
+ elif echo " $name " | grep ' ^js-' > /dev/null; then
46
46
47
47
# JS: clone repo, npm install, run aegir docs
48
48
tmpdir=" tmp/js"
You can’t perform that action at this time.
0 commit comments