Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Commit

Permalink
fix(url): improve docs url
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamontat Chantrachirathumrong committed Dec 28, 2018
1 parent 655ceb2 commit a17c8d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions _redirects
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

# redirect to docs
/ /docs 200!
/ /docs 301

# redirect netlify function path
/* /.netlify/functions/:splat 200!
/* /.netlify/functions/:splat 200

/l/* /.netlify/functions/:splat 200!
/latest/* /.netlify/functions/:splat 200!
/v2/* /.netlify/functions/:splat 200!
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
"dump-version": "git tag \"$(node ./scripts/dump-version.js)\"",
"start": "netlify-lambda serve src/apis",
"build": "netlify-lambda build src/apis",
"docs:compile": "mkdir docs 2>/dev/null; aglio --theme-variables slate -i src/docs/index.apib -o docs/docs.html && cp _redirects docs/_redirects && cp 404.html docs/404.html",
"docs:compile": "mkdir docs 2>/dev/null; aglio --theme-variables slate -i src/docs/index.apib -o docs/docs.html && cp _redirects docs/_redirects",
"docs:start": "aglio --theme-variables slate -i src/docs/index.apib -o docs/docs.html -s",
"prepush": "yarn dump-version",
"push": "git push && git push --tag",
"deploy": "yarn docs:compile && yarn build"
"deploy": "yarn docs:compile && yarn build && ls -la docs"
}
}

0 comments on commit a17c8d1

Please sign in to comment.