Skip to content

Commit

Permalink
[docs] Add proper jekyll plugins for redirects
Browse files Browse the repository at this point in the history
For some reason, this initially worked without the plugin, but
now it needs it.  The plugin fixes the redirects
  • Loading branch information
gregnazario committed Feb 20, 2024
1 parent a5ad809 commit d1d3cef
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 13 deletions.
1 change: 1 addition & 0 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ <h1>404</h1>

<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
<p>Please go to the <a href="./index.md">documentation index</a></p>
</div>
3 changes: 1 addition & 2 deletions docs/@aptos-labs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
permalink: /@aptos-labs
redirect_to:
- ./ts-sdk-latest
redirect_to: /@aptos-labs/ts-sdk-latest
---
6 changes: 3 additions & 3 deletions docs/@aptos-labs/ts-sdk-latest/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
permalink: /ts-sdk-latest
redirect_to:
- ../ts-sdk-1.7.0
title: Latest Aptos TypeScript SDK Documentation
permalink: /@aptos-labs/ts-sdk-latest
redirect_to: /@aptos-labs/ts-sdk-1.7.0
---
1 change: 1 addition & 0 deletions docs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ gem "jekyll", "~> 4.3.2"
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
gem 'jekyll-redirect-from'

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
Expand Down
20 changes: 12 additions & 8 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.5)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
colorator (1.1.0)
concurrent-ruby (1.2.2)
concurrent-ruby (1.2.3)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.16.3)
forwardable-extended (2.6.0)
google-protobuf (3.24.4-arm64-darwin)
google-protobuf (3.25.3-arm64-darwin)
http_parser.rb (0.8.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
jekyll (4.3.2)
jekyll (4.3.3)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
Expand All @@ -31,6 +31,8 @@ GEM
safe_yaml (~> 1.0)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-sass-converter (3.0.0)
sass-embedded (~> 1.54)
jekyll-watch (2.2.1)
Expand All @@ -46,26 +48,28 @@ GEM
mercenary (0.4.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.0.3)
public_suffix (5.0.4)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.6)
rouge (4.1.3)
rouge (4.2.0)
safe_yaml (1.0.5)
sass-embedded (1.69.3-arm64-darwin)
google-protobuf (~> 3.23)
sass-embedded (1.71.0-arm64-darwin)
google-protobuf (~> 3.25)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
unicode-display_width (2.5.0)
webrick (1.8.1)

PLATFORMS
arm64-darwin-22
arm64-darwin-23

DEPENDENCIES
http_parser.rb (~> 0.6.0)
jekyll (~> 4.3.2)
jekyll-redirect-from
tzinfo (>= 1, < 3)
tzinfo-data
wdm (~> 0.1.1)
Expand Down
4 changes: 4 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ title: Aptos TypeScript SDK Documentation
description: >- # this means to ignore newlines until "baseurl:"
Aptos TypeScript SDK documentation by version.
remote_theme: pages-themes/minimal@v0.2.0
plugins:
- jekyll-remote-theme
- jekyll-redirect-from
# Build settings

# Exclude from processing.
Expand Down
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
---
title: Aptos TypeScript SDK Documentation (@aptos-labs/ts-sdk)
redirect_from:
- /@aptos-labs
---

## SDK Versions
Expand Down

0 comments on commit d1d3cef

Please sign in to comment.