Commit graph

6265 commits

Author SHA1 Message Date
Yangshun Tay
6b4ec3039d feat(v2): fix sidebar item padding 2018-10-15 23:09:58 -07:00
Yangshun Tay
e0d96a4b38 feat(v2): style up sidebar 2018-10-15 23:04:06 -07:00
Maximilian Goisser
0e78eff1a7 docs: fix link to Skiplang in Changelog (#1041) 2018-10-15 14:59:01 -07:00
Alex Driedger
a28ac3bf93 docs: update siteConfig documentation for publishing with GitHub Pages (#1038)
* Updated Publishing with GitHub Pages

Updated docs to resolve #1029

* Update getting-started-publishing.md
2018-10-15 10:18:22 -07:00
Vikram Rangaraj
1c333ee22a chore(v2): revert back to babel-plugin-dynamic-import-node (#1037) 2018-10-14 15:22:06 -07:00
Yangshun Tay
b577f60d4a
fix: improve last updated time feature (#1036) 2018-10-14 15:05:00 -07:00
Yangshun Tay
ff11d17625
chore: finer-grain per-project Prettier commands (#1032)
* chore: reorganize prettier commands

* Add back prettier:diff
2018-10-14 14:41:57 -07:00
Yangshun Tay
101a1a74c7
chore: add README to v1 (#1031) 2018-10-14 14:41:19 -07:00
Fienny Angelina
a39677c202 fix: exclude file movements for last updated time (#1023)
* Fix last updated time misleading, only show when file content change
or otherwise when it is first created

Fix #1015

* Fix prettier

* - Simplify regex
- Uses shelljs instead of cross-spawn
- Make logic clearer

* Add test when repositories is moved

* Use shell.exec mock

I initially try to mock the whole shelljs. But it returns error
shell.exec is not a function when i try to provide the mockResolvedValue
I think it is because of the inner code of shelljs who run a forEach to
require each of its method which make it a promise. I tried moving the
jest.mock inside beforeAll and also adding babel-dynamic-import but it did
not solve the problem. In the end, I decided to just mock shelljs.exec since
it is the only function used anyway
2018-10-14 14:09:39 -07:00
Yangshun Tay
bc7be697ad
feat(v2): skin paginator component (#1033) 2018-10-14 12:29:22 -07:00
Tan Li Hau
1bc1762b02 docs: document process.env.BROWSER for start command (#1034)
* docs: document BROWSER

* Update api-commands.md
2018-10-14 12:28:50 -07:00
Tan Li Hau
287c4872fe throw error when forgot to pass in GIT_USER (#1035) 2018-10-14 12:27:47 -07:00
Yangshun Tay
f22aa221f2
Publish v1.5.0 (#1030)
* v1.5.0

* Add version 1.5.0
2018-10-13 12:17:26 -07:00
Yangshun Tay
76e2d3bf17 v 2018-10-13 12:06:31 -07:00
Tan Li Hau
1275005321 docs: reorganize siteConfig entry (#436) (#1027) 2018-10-12 09:00:24 -07:00
Kevin Kipp
e880756614 feat: add keyboard shortcut to focus search (#1028)
* feat: add keyboard shortcut to focus search

* refactor: use const instead of let

* refactor: check target and bail if not body
2018-10-11 22:50:12 -07:00
Yangshun Tay
fe500dea82
fix: change subcategory format (#1026)
* fix: change subcategory format

* Fix sidebars

* Refactor

* Fix implementation

* Change format
2018-10-10 08:33:20 -07:00
Endilie Yacop Sucipto
c277f46a60
chore(v2): temporarily add available urls to footer (#1022)
* chore(v2): temporarily add available urls to footer

* use react-router Link

* nits
2018-10-08 18:10:12 +08:00
Endilie Yacop Sucipto
f62029c30e
feat(v2): enable subcategories (#1021)
* feat(v2): enable subcategories

* nits

* eslint issue https://github.com/prettier/prettier/issues/3734
2018-10-08 17:50:28 +08:00
Will Brock
954456088c feat: sub-categories in sidebar.json (#892)
* Add ability to specify sub categories in sidebar.json

* move v1 files to correct place

* refactor implementation

* refactor naming for implementation clarity
2018-10-08 16:09:29 +08:00
Fienny Angelina
d052feec40 chore(v2): upgrade to Babel 7 (#1012)
* Upgrade babel in v2 folder

* Use babel-plugin-transform-dynamic-import instead of babel-plugin-dynamic-import-node

* Remove not needed import polyfill by changing the order of import

* Revert "Remove not needed import polyfill by changing the order of import"

This reverts commit 9263aa693a.

* Fix prettier
2018-10-08 14:42:31 +08:00
Yangshun Tay
2e9656917c style(v2): basic sidebar component (#1020) 2018-10-07 16:23:41 +08:00
Erik Sultanaliev
aae5c4dc85 fix: highlightjs custom highlighting function(#1016)
* Added line for syntax definition #960

* chore: nits & fix for v2 as well
2018-10-05 15:59:24 +08:00
Yangshun Tay
bdbbfaee91 style(v2): add static footer component (#1019) 2018-10-05 15:27:37 +08:00
Joel Marcey
41aaed64a7 Add Skip to users (#1018)
* Add Skip to users

* Update users.js

* Update users.js
2018-10-04 19:55:55 -07:00
Yangshun Tay
e3d57d244b
refactor(v2): extract out into standalone components (#1017) 2018-10-04 14:43:36 -07:00
Amy Lam
a364aa531c Fix typo in Getting Started docs (#1013) 2018-10-01 22:41:08 -07:00
Fienny Angelina
0f8535293e Upgrade to babel 7 for v1 (#995)
* Upgrade babel 7
Use custom transform for jest to handle docs test since there is
path change in there

* change all version of babel dependency

* - add silent to yarn build
- add babel/types to expose  method used in translate-plugin
2018-09-30 13:32:12 -07:00
Atul Bhosale
c24e9bfb7f docs: add explanation about versioned docs to CONTRIBUTING (#986)
* Add explanation about versioned docs to readme

* Update CONTRIBUTING.md
2018-09-29 18:23:00 -07:00
Endilie Yacop Sucipto
8691a2525c
feat: custom pages (#994) 2018-09-29 00:18:38 +08:00
Endilie Yacop Sucipto
7d4d9fe961
chore: move v1 crowdin yaml to right place (#993) 2018-09-28 18:52:29 +08:00
Alkshendra Maurya
d2dd047866 style: UI improvements to searchbar (#989)
* Clean up responsive search overrides

* Add responsive improvements to searchbar fixes #988, fixes #385
2018-09-28 15:08:37 +08:00
Endilie Yacop Sucipto
054416b730
chore: automate request for review on v2
Automate request for review on any pull request related to v2
https://blog.github.com/2017-07-06-introducing-code-owners/
2018-09-25 20:33:52 +08:00
Endilie Yacop Sucipto
604f02edeb
feat: add deploy (formerly publish-gh-pages) command (#979) 2018-09-25 20:26:39 +08:00
DABH
9b6ec5b9bb docs: fix broken header image link in readme (#978) 2018-09-22 13:36:14 -07:00
Endilie Yacop Sucipto
719bc0f370
docs: recommend semantic commit messages style (#977)
* docs: recommend semantic commit messages style

* docs: nits

* Update CONTRIBUTING.md
2018-09-22 11:44:22 +08:00
Endilie Yacop Sucipto
ce5610a420
refactor(v2): better page preloading (#976)
* refactor: use native preloadReady for prerender on client

* refactor: rename 'prerender' to 'preload' for correctness
2018-09-22 00:42:06 +08:00
Endilie Yacop Sucipto
fbdd79981d
chore: rename v2 project back to Docusaurus (#975)
* feat: better log message on build

* feat: rename any 'endiliey|munseo' to 'facebook|docusaurus'

* test: remove unwanted console.log
2018-09-21 18:46:19 +08:00
Marvin Heilemann
8568a96e65 Added option for client to include there own remarkable config (#974)
* Added option for client to include there own remarkable config

* Better use merge here

* Added lodash ...

* Change use of lodash to deepmerge and added description to api site

* markdownConfig -> markdownOptions

* Update api-site-config.md

* remove 1.4 docs change

 since it is unrelated (the feature will only be available in next release)

* Run prettier
2018-09-20 15:00:59 +08:00
Yangshun Tay
3c36a1cc8c chore: update CI (#970)
* Update CI for v2

* Fix workflow name
2018-09-19 23:19:37 +08:00
Yangshun Tay
7931be9c71
Update CI for v1 (#968)
* Update CI for new repository structure

* Rename tests

* Fix workflow

* Add Prettier
2018-09-19 12:09:06 +08:00
Endilie Y
b401a2adc0
refactor(v2): use absolute path instead of alias for metadata source (#967)
refactor(v2): use absolute path instead of alias for metadata source
2018-09-18 12:29:14 +08:00
Yangshun Tay
f2927a9fc4
Move Docusaurus 1 files into directory (#966)
* Move Docusaurus 1 into v1 directory

* Update Circle CI commands for new v1 dir

* Remove OC

* Fix tests
2018-09-18 00:58:07 +08:00
Yangshun Tay
9d4a5d5359
Prettify all JavaScript files (#964)
* Prettify all JavaScript files

* Make trailingComma all

* Delete v2/.prettierignore

* Remove v2 Prettier commands in package.json
2018-09-17 15:34:55 +08:00
Yangshun Tay
a1de6dab04 chore: fix line endings in v2 2018-09-17 12:50:43 +08:00
Endilie Y
adbae6b2ba
Merge pull request #963 from endiliey/v2
v2: move v2 wip to Docusaurus
2018-09-17 12:22:45 +08:00
endiliey
0a2368b8d1 Merge branch 'master' of https://github.com/facebook/Docusaurus into v2 2018-09-17 12:18:01 +08:00
Yangshun Tay
52a5d8e8bd Revert "v2: move current v2 work to Docusaurus (#961)" (#962)
This reverts commit 11ba3ac379.
2018-09-17 12:16:01 +08:00
Endilie Y
11ba3ac379 v2: move current v2 work to Docusaurus (#961)
* first commit

* setup infra

* feat: add siteConfig loader

* feat: add blog loader

* chore(loader): prettier & eslint

* feat: add simple webpack config

* feat: prototype dev server

* chore: .gitignore & add config for demo

* feat(webpack): add better log output

* chore: prettier & eslint

* feat: prototype building dynamic react route

* chore: remove unused variables

* chore: add MIT license

* chore: remove unused package

* feat: prototype blog post generation in dev server

* refactor: config path

* feat: add more koa app for webpack-serve add-on

* refactor: use cache for blogDatas generation

* chore: prettier & remove unused

* chore: refactor & fix typo

* feat: add koa-static to serve static files

* chore: namespace webpack output

* feat & refactor: webpack-serve-waitpage and lint

* refactor: dev

* refactor: folder structure & filename

* feat: use webpackbar

* chore: delay starting webpack-serve by one second

* chore: add sakura.png to test static file

* chore: update webpack-nicelog to v2

* refactor: use docusaurus structure

* chore: add dummy blog file

* feat: add react component for markdown->html

* chore: prettier

* feat: prototype blog & docs generation on dev

* fix: blog file should trigger reload

* feat: add home page for available routes

* refactor: rename loader to load as not to confuse webpack loader

* feat: add very simple default theme

* feat: simple webpack config

* chore: dotfiles

* chore: dependencies

* feat: add React component to render Markdown

* feat: react router config generation for docs

* chore: eslint fix

* feat: add own webpack markdown to react loader

* feat: webpack config creator

* chore: eslinting

* feat: add App.js (react router config renderer)

* feat: add core dev files

* feat: add production entry & template

* feat: add build command

* refactor: start cli command

* chore: prettier & lint

* chore: delete old unused files

* feat: prototype custom pages site generation

* chore: add README

* chore: eslint fix

* feat: copy static files for production build

* chore: update readme & dependencies

* chore: more test files

* refactor: code

* chore: add blog test file

* fix: use exact path & handle non-index pages

* chore: add pages/tictactoe.js to test reactDOM

* chore: minimal es6 refactor

* dep: update webpack-nicelog

* refactor: use alias for docs & eslint

* dep: add bundle analyzer temporarily to check bundle size

* test: add test for load config

* test: load docs

* test: utils for load

* test: load pages

* chore: eslint & prettier nits

* test: genRoutesConfig

* chore: remove bundle analyzer

* test: test compile dev/prod webpack config

* chore: eslint & prettier nits

* test: fix load test

* test: more timeout for webpack compile test

* test: compile webpack config for dev and prod

* feat: use ejs to build html template

* feat: hash the webpack-compiled js file

* feat: add .css webpack loader

* test: validate generated webpack config instead of compiling

* dep: use forked version of static-generator-webpack-plugin

* feat: code split & use react helmet

* feat: remove/clean your build folder(s) before building

* chore: nits

* fix: hot reload port should not be hardcoded in case it is used

* chore: update readme

* chore: update docs examples

* chore: better examples

* test: update test webpack

* chore: add missing dep & nits :(

* feat: hljs syntax highlighting & nits

* chore: add another react pages examples

* chore: nits && lint

* feat: throw error if there is wrong field on siteConfig.js

* feat: able to specify host for dev (e.g: 0.0.0.0)

* feat: enable custom theme with eject

* feat: allow user to modify generated webpack config

* refactor: load theme

* feat: add loadEnv to check if translation / versioning is enabled

* feat: add @theme/Markdown to allow user modify their own markdown react component

* wip: trans & versioning

* test: loadPages

* chore: prepare for docs sidebar

* test: add easy setup for test cases

* feat:docs translation + versioning 💥

* test: fix inconsistent test

* fix: docs translation & versioning metadata

* test: add metadata test

* fix: yarn build error

* feat: allow custom docsUrl & custom permalink

* chore: normalize permalink to remove trailing slash if user permalink is not good

* fix: default theme url typo

* fix: provide correct paths for build

* feat: add uglifyjs webpack plugin

* test: docs ordering from sidebar

* feat: replace relative markdown link to corrrect url

* chore: rename data -> metadata for consistency

* fix: markdown linking for translated & versioned docs

* feat: pass loaded siteConfig as props for React component

* feat: add next/prev button for docs according to sidebar

* refactor: use <Link /> from react-router for next/prev link

* test: metadata test for next/prev from sidebars

* feat: avoid flash Of Loading component

* chore: naming consistency

* feat: add docs sidebar

* chore: nits

* refactor: only process translated & versioned if it is enabled

* refactor: css extraction

* v2: prepare to move

* v2: ignore v2 folder for now

* v2: nits
2018-09-17 12:14:31 +08:00
endiliey
dcb733a63a v2: nits 2018-09-17 12:09:14 +08:00