Commit graph

1235 commits

Author SHA1 Message Date
Endilie Yacop Sucipto
cb1395ee29
fix: docusaurus-version generates wrong metadata
Fix #1140 

Regression from #1125
2018-12-04 12:21:30 +08:00
Endilie Yacop Sucipto
7a0ff3390d
chore: update changelog 2018-12-02 14:40:47 +08:00
Endilie Yacop Sucipto
0492ba53a5 v1.6.0 (#1133)
* v1.6.0

* nits changelog

* typo
2018-12-01 21:37:00 -08:00
Dom Corvasce
61078e38a9 feat: Allow modifying docs url prefix (#914)
* Allow other routes than /docs in the URL

siteConfig.js has a new mandatory field named *docsRoute* which default
value is 'docs' and that can be customized by the user.

This change will allow users who uses the library to host guides and
tutorials to customize their websites by assign 'docsRoute' values
like 'tutorials' or 'guides'.

Fixes #879

* Make "docsRoute" field optional

* Isolate docsRoute login in getDocsRoute function

* Rename docsRoute to docsUrl

* Run prettier

* Remove old folders

* fix: Restore docusaurus reference link

* fix: Add `docsUrl` param fallback. Refactor multiple function calls

* Fix linting errors

* Update description for docsUrl field

* Reduce redundant calls to getDocsUrl

* Replace a missed use case for `docsUrl` instead of the function call

* Move `getDocsUrl` out from `server/routing.js` to `server/utils.js`

**Why?**
Because `routing.js` is exporting all router RegEx's, and the
`getDocsUrl` suffices more as a util

* WiP: Align leading slashes and fix routing around `docsUrl`

Checklist:
- [x] Added `removeDuplicateLeadingSlashes` util to make sure there is only
one leading slash
- [-] Fix edge cases for routing:
  - [x] `docsUrl: ''`
  - [ ] `docsUrl: '/'`
  - [ ] make it work with languages
  - [ ] make it work with versioning

* Make leading slashes canonical cross routing and generated links

This ensures correct routing for customized `baseUrl` and `docsUrl`.

- Changed all routing functions to take `siteConfig` instead of
`siteConfig.baseUrl`
- Updated tests accordingly

* Alternative fallback for `docsUrl`

* rework/ fix implementation

* cleanup

* refactor and add docs for config props

* fix typo

* fix broken url
2018-11-28 15:34:16 +08:00
Richard
ff22074ff7 chore: Add Haul to users page (#1130) 2018-11-27 22:47:35 +08:00
Joel Marcey
4034fa1453 docs: add TorchCraftAI as user (#1129) 2018-11-26 10:38:21 -08:00
maxaggedon
c6f3f0958d feat: customizable search placeholder (#1126)
* feat: customizable search placeholder

* prettier
2018-11-23 14:27:59 -08:00
Gianluca Donato
711c15d3e3 feat: warning message when md links are broken (#1116)
feat: show a warning message when md links are broken
2018-11-23 22:43:12 +08:00
Endilie Yacop Sucipto
1e8361392c fix: docusaurus-version should allow duplicate id in different subfolder (#1125)
* fix: docusaurus-version should not be confused for duplicate ids in different subfolder

* nits

* nits

* remove log
2018-11-22 23:51:18 -08:00
Endilie Yacop Sucipto
579cc61bbf fix: docusaurus-version should work with subcategory (#1124) 2018-11-22 21:15:52 -08:00
maxaggedon
2df14feafd feat: use 'sidebar_label' instead of 'title' in prev/next buttons (#1122)
* feat: use 'sidebar_label' instead of 'title' in prev/next buttons

* docs: update 'sidebar_label' description
2018-11-22 18:36:05 +08:00
Joel Marcey
a3ff990471
Add Spectrum as a user (#1123) 2018-11-21 15:21:19 -08:00
Endilie Yacop Sucipto
beca1697ff
chore(v2): update webpack dependencies (#1120) 2018-11-21 15:57:54 +08:00
Endilie Yacop Sucipto
46404461b8
fix: translated pages missing left TOC (#1119) 2018-11-20 16:36:56 +08:00
tsmrachel
54b76628f1 docs: specify markdown flavor support (#1118)
* docs : #1108 specify markdown flavor support

* Update api-doc-markdown.md
2018-11-18 21:07:57 -08:00
Shriram Balaji
91c5e5e444 fix: warn unsupported languages by prismjs (#1107)
* Logged unsupported languages instead of stacktrace error. Added some lang aliases

* Modify language highlight color
2018-11-12 18:39:33 +08:00
Alexandre ZANNI
2bf2dfe173 docs: mention about website directory naming (#1106)
docs: mention about website directory naming
2018-11-11 15:14:39 -08:00
Endilie Yacop Sucipto
b84754dde8
chore(v2): normalize url properly (#1105)
* refactor(v2): normalize url properly

* nits
2018-11-12 00:25:13 +08:00
皋玮
34dcc0c22e docs: showcase React-Redux (#1104) 2018-11-12 00:18:47 +08:00
Andrew Low
49af2075b5 fix: livereload not working on second try (#1103)
* Fix livereload on second try

* fix lint

* Rename to LIVERELOAD_PORT
2018-11-11 22:36:11 +08:00
Alex Perez
7aba299a3b docs: showcase user hemera (#1101) 2018-11-08 11:56:36 -08:00
Andrew Shillito
8c7d89c667 docs: add info about setting custom doc path (#1098)
* docs: add info about setting custom ../docs folder name

* Update getting-started-preparation.md
2018-11-07 21:59:55 -08:00
Endilie Yacop Sucipto
a0d229d808
feat(v2): better UX to avoid flashing screen on first page reload (#1100) 2018-11-08 11:19:37 +08:00
Endilie Yacop Sucipto
fc7ba5b6b1
chore(v2): switch from uglifyjs-webpack-plugin to terser-webpack-plugin (#1099) 2018-11-08 10:58:52 +08:00
Endilie Yacop Sucipto
8695ed89a6
refactor(v2): use react hooks on root app (#1095)
* refactor(v2): use functional component + react hooks for App

* docusaurus/link

* nits

* review
2018-11-08 10:23:07 +08:00
Andrew Shillito
72d1fa2d2a docs: showcase user react-slate (#1097) 2018-11-07 10:06:25 -08:00
Yangshun Tay
13a21b2374 feat(v2): rewrite docs loading strategy (#1092)
* feat(v2): rewrite docs loading strategy

* Prettify

* Lint

* Allow resolving from library root

* minor changes, refactor

* copyright header
2018-11-07 16:39:47 +08:00
Yangshun Tay
c9243e8922
chore: publish v1.5.1 (#1090)
* chore: publish v1.5.1

* Update link
2018-11-03 14:54:34 -07:00
Shahed Nasser
a33e3ec362 docs: showcase user Formik (#1086) 2018-11-03 06:06:31 -07:00
Sunita Sen
4ba40f83aa docs: add react-360 to users (#1088)
docs: add react-360 to users
2018-11-03 06:05:44 -07:00
Rajekevin
c7bc2c8366 docs: showcase user Noderize (#1087) 2018-11-03 06:02:02 -07:00
Goksu Toprak
3250662e73 feat: add caption to user links (#1075)
* feat: add caption to users links

created a shared component `Showcase`

* Cleans linter

* revert main.css changes — update custom.css

* Move Showcase comp to website out of lib - fix layout
2018-11-02 10:20:25 -07:00
Yangshun Tay
8bcb5d3365 chore: revert full-width nav changes 2018-10-31 22:35:41 -07:00
Yangshun Tay
db9e07886c chore(v2): fix copyright header again 2018-10-31 10:49:12 -07:00
Hugues Tennier
e788dc4122 fix: previous / next page buttons label (#1079) 2018-10-31 09:47:55 +08:00
endiliey
62b5895ef8 style(v2): better loading screen 2018-10-30 23:17:32 +08:00
Yangshun Tay
6cec7ce982 feat(v2): render Markdown on server-side instead (#1077)
* feat(v2): render Markdown on server-side instead

* move to folder
2018-10-30 22:45:07 +08:00
Yangshun Tay
d479f42ff5 chore(v2): add copyright header to Navbar 2018-10-29 13:40:24 -07:00
Endilie Yacop Sucipto
85336649d3
feat(v2): headerlinks (#1074)
* feat(v2): headerlinks

* fix test

* nits

* remove tictactoe:

* headerIcon

* nits

* remove lang dropdown

* fix failing test

* search box

* algolia search

* use babel-eslint to resolve dynamic import

* nits

* favicon and title

* Update .eslintignore
2018-10-28 16:32:19 +08:00
Yangshun Tay
d4458b394c
chore(v2): lint website dir (#1073)
* chore(v2): lint website dir

* chore(v2): lint website dir

* fix CircleCI config
2018-10-27 12:01:10 -07:00
Yangshun Tay
40f620047a refactor(v2): use React hooks! (#1072) 2018-10-27 15:06:05 +08:00
Endilie Yacop Sucipto
f84332d0a0
feat(v2): webpack prefetch for better UX (#1071)
* feat(v2): webpack prefetch for better UX

* test snapshot update

* nits
2018-10-27 13:48:10 +08:00
Blaine Bublitz
bbf355fdc7 feat: support reference-style linking in documents (#1048)
feat: support reference-style linking in documents
2018-10-27 12:33:44 +08:00
Yangshun Tay
7488de266f chore: add final copyright headers 2018-10-26 18:27:37 -07:00
Yangshun Tay
c7336462ec
feat(v2): support non-css modules when loading styles (#1069) 2018-10-25 21:43:31 -07:00
Yangshun Tay
13b23edd12
chore(v1): add Facebook copyright headers (#1068) 2018-10-25 17:30:38 -07:00
Yangshun Tay
c9e29c86a5
chore(v2): add Facebook copyright headers (#1067) 2018-10-25 17:03:19 -07:00
Endilie Yacop Sucipto
fd780f19a2
feat(v2): generate sitemap (#1065)
* feat(v2): generate sitemap

* cannot snapshot sitemap because xml generated in different order
2018-10-25 21:47:13 +08:00
claneo
8663a63e7d fix: path/url joining bug on windows (#1064)
* fix error while using multiple level directory

* fix error while using non-english file name
2018-10-25 14:25:10 +08:00
Endilie Yacop Sucipto
12fd204840
feat(v2): implement blog (#1062)
* feat(v2): implement blog

* expect flat blog structure

* \n

* blogpage can import many posts
2018-10-25 14:23:29 +08:00