Skip to content

Commit 49a4755

Browse files
committed
Support /docs/content/{app,post,resource}/slug/ URLs
Supports these URLs for individual pieces of content: - Marketplace: /docs/content/app/slug/ - Blogs: /docs/content/post/slug/ - Resources: /docs/content/resource/slug/
1 parent 0b3188f commit 49a4755

File tree

10 files changed

+17
-24
lines changed

10 files changed

+17
-24
lines changed

_vendor/github.com/bep/linodedocs/assets/js/main/navigation/create-href.js

+3-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_vendor/github.com/bep/linodedocs/assets/js/main/sections/sections/blog-article.js

+5-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_vendor/github.com/bep/linodedocs/assets/js/main/sections/sections/list.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_vendor/modules.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# github.com/bep/linodedocs v0.0.0-20201007072802-ef9a55d5c496
1+
# github.com/bep/linodedocs v0.0.0-20201009061038-bc8f34802ba0
22
# github.com/linode/linode-website-partials v0.0.0-20201001182036-fe8965a45b3c
33
# github.com/gohugoio/hugo-mod-jslibs/alpinejs v0.7.0
44
# github.com/alpinejs/alpine v2.7.0+incompatible

config/development/server.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ for = "/**.{css,jpg,js}"
1515
Cache-Control = "public, max-age=2"
1616

1717
[[redirects]]
18-
from = "/docs/blog/**"
19-
to = "/docs/blog/"
18+
from = "/docs/content/**"
19+
to = "/docs/content/"
2020
status = 200
2121

2222
[[redirects]]

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/bep/hugo-jslibs/alpinejs v0.5.14 // indirect
77
github.com/bep/hugo-jslibs/instantpage v0.0.0-20200822093604-7b6e0aaba587 // indirect
88
github.com/bep/hugo-jslibs/turbolinks v0.1.2 // indirect
9-
github.com/bep/linodedocs v0.0.0-20201007072802-ef9a55d5c496
9+
github.com/bep/linodedocs v0.0.0-20201009061038-bc8f34802ba0
1010
github.com/linode/linode-api-docs/v4 v4.77.0 // indirect
1111
github.com/linode/linode-website-partials v0.0.0-20201001182036-fe8965a45b3c // indirect
1212
)

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ github.com/bep/linodedocs v0.0.0-20201007065254-d6ae604ee027 h1:1JFqvV0CekBh1NBs
9797
github.com/bep/linodedocs v0.0.0-20201007065254-d6ae604ee027/go.mod h1:j/Hy4U4rBcnbeKse4usdz4IscMkcOEiRvyXjAGS5gU8=
9898
github.com/bep/linodedocs v0.0.0-20201007072802-ef9a55d5c496 h1:c1fZdnsKLRPY8RzU6AqUwXOFRDagwKd+Ow6Sno4ctpI=
9999
github.com/bep/linodedocs v0.0.0-20201007072802-ef9a55d5c496/go.mod h1:j/Hy4U4rBcnbeKse4usdz4IscMkcOEiRvyXjAGS5gU8=
100+
github.com/bep/linodedocs v0.0.0-20201009061038-bc8f34802ba0 h1:FggLXtjukITJj6udAS4s8V5JDsKtzRP17kOaJxtLpFM=
101+
github.com/bep/linodedocs v0.0.0-20201009061038-bc8f34802ba0/go.mod h1:j/Hy4U4rBcnbeKse4usdz4IscMkcOEiRvyXjAGS5gU8=
100102
github.com/gohugoio/hugo-mod-jslibs/alpinejs v0.5.0/go.mod h1:XvAGp/0tQ8bZpoCcM6rdx1NbzZUy3/KtetedtdgaNek=
101103
github.com/gohugoio/hugo-mod-jslibs/alpinejs v0.6.0/go.mod h1:QB5IEnFYPAWpMEBg4tF1OW0xzI1O68QNWnqfPuUkpnU=
102104
github.com/gohugoio/hugo-mod-jslibs/alpinejs v0.7.0/go.mod h1:e1pgFkSbGd2EzKUbAuXHSnVqMX2suwsSklPZfDXeQkg=

netlify.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ Referrer-Policy = "no-referrer"
5959
Content-Security-Policy = "script-src 'self' *.googletagmanager.com *.trustarc.com *.weglot.com *.disqus.com 'unsafe-eval' 'unsafe-inline'"
6060

6161
[[redirects]]
62-
from = "/docs/blog/*"
63-
to = "/docs/blog/"
62+
from = "/docs/content/*"
63+
to = "/docs/content/"
6464
status = 200
6565

6666
[[redirects]]

0 commit comments

Comments
 (0)