forked from holochain/docs-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
82 lines (69 loc) · 2.45 KB
/
netlify.toml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[build]
publish = "/build"
command = "./create_docs.sh"
# These first rules are a bit fiddly -- we explicitly redirect URLs that we know should
# point to the Redux docs, rather than redirecting to `/`, then to `/redirect-to-redux-site.html`,
# which ends up breaking things on the Redux site side.
[[redirects]]
from = "/docs/guide/*"
to = "/redirect-to-redux-site.html#!docs/guide/:splat"
# We may use this path for a new guidebook.
status = 302
[[redirects]]
from = "/docs/tutorials/*"
to = "/redirect-to-redux-site.html#!docs/tutorials/:splat"
# Holding open the possibility of tutorials too.
status = 302
[[redirects]]
from = "/docs/create-new-app/"
to = "/redirect-to-redux-site.html#!docs/create-new-app/"
status = 302
[[redirects]]
from = "/resources/happ-bundle/"
to = "/redirect-to-redux-site.html#!docs/resources/happ-bundle/"
# There will eventually be a new hApp bundle format that will get documented,
# and I intend to put it under `/references`.
status = 302
# Some of the core concepts' titles and URLs have changed,
# but fortunately they map to new core concepts (sometimes roughly, sometimes exactly)
# so let's redirect them.
[[redirects]]
from = "/docs/concepts/3_private_data/"
to = "/concepts/3_source_chain/"
status = 301
[[redirects]]
from = "/docs/concepts/4_public_data_on_the_dht/"
to = "/concepts/4_dht/"
status = 301
[[redirects]]
from = "/docs/concepts/5_linking_data_together/"
to = "/concepts/5_links_anchors/"
status = 301
[[redirects]]
from = "/docs/concepts/6_modifying_and_deleting_data/"
to = "/concepts/6_crud_actions/"
status = 301
[[redirects]]
from = "/docs/concepts/8_node_to_node_messaging/"
to = "/concepts/8_calls_capabilities/"
status = 301
# Once upon a time, we had a landing page and all the actual docs were in /docs.
[[redirects]]
from = "/docs/*"
to = "/:splat"
status = 301
# Super old install URL; used to be incorrectly linked from the blog's CTAs.
[[redirects]]
from = "/start.html"
to = "/install/"
status = 301
# This is just for the nix guide, which is now called the advanced install guide.
[[redirects]]
from = "/docs/nix/"
to = "/install-advanced/"
status = 301
# The rrDHT paper got finalised, so let's redirect to the final copy.
[[redirects]]
from = "/assets/files/RRDHT-draft-Nov-2019.pdf"
to = "/assets/files/RRDHT-whitepaper-final.pdf"
status = 301