Commit graph

564 commits

Author SHA1 Message Date
Endilie Yacop Sucipto
7e6b74b820 refactor(v2): simplify + optimize server (#1343) 2019-04-07 22:34:11 -07:00
Endilie Yacop Sucipto
84c3e0a045
refactor(v2): simplify webpack stuff (#1342)
* refactor(v2): webpack stuff

* nits

* nits test
2019-04-08 01:40:38 +07:00
Endilie Yacop Sucipto
aa27f82acc
refactor(v2): shift to docusaurus/mdx-loader (#1339) 2019-04-06 23:55:22 +07:00
Yangshun Tay
1a8e12048e feat(v2): docs plugin continued (#1337)
* refactor(v2): shift markdown loader into plugin

* fix(v2): build command configure webpack

* temporary fix for failing test
2019-04-06 21:01:29 +07:00
Endilie Yacop Sucipto
50bbc1dcd7 feat(v2): proper realtime hot reload with react-hot-loader (#1336)
* feat(v2): proper realtime hot reload with react-hot-loader

* nits

* nits again
2019-04-04 08:24:20 -07:00
Endilie Yacop Sucipto
94a4ef55c0 feat(v2): add cache-loader by default especially on babel-loader (#1335) 2019-04-03 12:02:53 -07:00
Endilie Yacop Sucipto
c129c68d1c feat(v2): enable user to analyze production bundle size (#1334)
* feat(v2): enable user to analyze bundle size with --bundle-analyzer for production

* nits
2019-04-03 10:42:11 -07:00
Yangshun Tay
029aa636a8
refactor(v2): load sidebars from docs plugin (#1328)
* refactor(v2): load sidebars from docs plugin

* fix(v2): update tests

* fix(v2): change to sidebarPath
2019-04-01 19:42:14 -07:00
Endilie Yacop Sucipto
57d06a8da3 feat(v2): webpack chunk naming and splitting (#1323)
* feat(v2): webpack chunk naming & splitting

* component chunkName should be based on component import path

* nits

* css chunk naming

* typo on package.json

* Update routes.js
2019-03-30 08:42:14 -07:00
Endilie Yacop Sucipto
afed949136
feat(v2): docusaurus-link prefetch chunk within perimeter (#1321)
* feat(v2): docusaurus-link prefetch chunk within perimeter

* smaller padding

* dont hardcode padding
2019-03-29 21:33:46 +07:00
Endilie Yacop Sucipto
1bd2640749
chore(v2): update dependency (#1316) 2019-03-28 23:12:28 +08:00
Endilie Yacop Sucipto
4bd5d3937e
feat(v2): enhance @docusaurus/plugin-content-blog (#1311)
* feat(v2): @docusaurus/plugin-content-blog

* address code review
2019-03-26 01:39:58 +07:00
Endilie Yacop Sucipto
aa6b497ec8
refactor(v2): mdx-loader (#1310) 2019-03-25 22:35:37 +07:00
Endilie Yacop Sucipto
c5d8e2d641 chore(v2): webpack-serve -> webpack-dev-server (#1303)
* chore(v2): webpack-serve -> webpack-dev-server

* Update start.js
2019-03-24 18:28:15 -07:00
Yangshun Tay
1edbeecbe5 chore(v2): add ESLint rule to check for Facebook copyright headers in JS files (#1301) 2019-03-24 14:50:26 +07:00
Endilie Yacop Sucipto
3a7a253db7
refactor(v2): plugin, utils as separate package (#1298)
* refactor(v2): plugin, utils as separate package

* rename docusaurus-plugin to @docusaurus/plugin

* update snapshot
2019-03-23 15:46:16 +07:00
Endilie Yacop Sucipto
1f91d19a8c
chore: move to monorepo (#1297)
* chore: move to monorepo

* lint all js file

* simplify circleCI

* fix failing tests

* fix tests due to folder rename

* fix test since v1 website is renamed
2019-03-23 14:21:36 +07:00
YoshinoriN
db62233051 chore: upgrade husky to 1.3.1 (#1229) 2019-02-12 10:34:31 +08: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
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
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
Tom Auger
bbef20d345 fix: live reload port fallback if port is used (#899)
* Move start reload server into separate module

* Find an unused port when starting the live reload server

* Move findUnusedPort into module

* Add tests for findUnusedPort module

* Refactor findUnusedPort

* Move starting of servers into separate module and add tests

* Remove unused constants.js

* Zap extra line breaks

* Add tests for liveReloadServer

* Rename serverController to start

* Move start into lib/server

* Add portfinder package

* Replace findUnusedPort with portfinder

* nits
2018-09-13 02:03:52 +08:00
Joel Marcey
7daf64e760 Publish v1.4.0 (#954)
* v1.4.0

* Lock files

* Update CHANGELOG.md

* chore: add missing PR not included in CHANGELOG.md

* chore: fix changelog typo

* chore: fix CHANGELOG

* nits
2018-09-12 10:13:27 +08:00
Shubham Bansal
1a572757f1 feat: last updated time in docs (#913)
* Adding last updated time for docs

* Making file path general and other suggested changes

* Checking if time returned is null due to absence of git or some other issue

* Adding option to enable/disable update time feature and test-doc

* Adding simple unit tests for getGitUpdateTime()

* nits & rewrote failing test

* consistent test naming

* Adding optional updateEnableTime in documentation

* package-lock & yarn.lock
2018-08-29 21:15:18 +08:00
Laxman
cfabaedc99 Fix: conflicting strings issue in translations (#917)
* Fix conflicting strings issue in translations

* Preserve structure of `customTranslations`

* Use `deepmerge` to merge whole of `localized-strings`

* Simplify and make deep property access on an object safe

* Fix deep property accessor and rename it to idx
2018-08-29 00:04:02 +08:00
Endilie Yacop Sucipto
2fa67bbc13
v1.3.3 (#912)
* v1.3.3

* nits changelog

* run npm update & yarn update

* run prettier
2018-08-23 11:48:44 +08:00
jess
ef80581e8e Activating Open Collective (#883) 2018-08-03 18:25:57 -07:00
Endilie Yacop Sucipto
edb364ad02
chore: update jest to v23 (#885)
* chore: update jest to v23

* add changelog
2018-08-03 17:08:51 +08:00
Endilie Yacop Sucipto
18158d6abc
fix: truncate blogpost properly with truncate-html (#880)
* fix: truncate blogpost properly with truncate-html

* revert test file change

* chore: truncate blogpost for feed changelog
2018-08-02 15:16:26 +08:00
Sashank Thupukari
d3417b3bf2 Add autoprefixing to CSS pipeline (#867)
Add [autoprefixer](https://github.com/postcss/autoprefixer) as a final build step in the CSS pipeline.
2018-07-22 00:05:13 -07:00
Yangshun Tay
128dbfca0a Tidy up ESLint usage (#836)
* Use Airbnb ESLint

* Turn off rules

* Add back

* add website to eslint precommit

* Add back

* remove useless escape
2018-07-07 15:25:14 +07:00
Endilie Yacop Sucipto
21dcea2a31
Integrate eslint & precommit to codebase (#815)
* add eslint, precommit & refactor

* fix exit code 127

* modify contributing.md & add package-lock

* use .eslintrc.js
2018-07-01 12:27:31 +08:00
Yangshun Tay
5a8e9a9ff1
Exclude vendor dir from directory tree printing (#798)
* Exclude vendor dir for directory tree printing

* Upgrade tree-node-cli

* Upgrade tree-node-cli

* Update package-lock.json
2018-06-23 23:47:48 -07:00
Joel Marcey
ca8afb0951
Publish v1.2.1 (#785) 2018-06-17 16:00:12 -07:00
Yangshun Tay
ddcd18a803
Add Metro as user (#755)
* Add Metro as user

* Remove redundant React logo
2018-06-10 17:57:01 -07:00
Joel Marcey
0d000b1bec Publish v1.2.0 (#753) 2018-06-10 12:04:23 -07:00
Endilie Yacop Sucipto
c8bc00a3a7 Enable using Prism for syntax highlighting (#735)
* Enable user to use prism.js as syntax highlighter

* add package-lock

* if 'usePrism' is true, use prismjs on all languages

* don't get lang by hljs if use prism

* Update api-site-config.md

* Update api-doc-markdown.md

* only load prism css when usePrism is true
2018-06-09 11:38:01 -07:00
Joel Marcey
01bc5e4dd5
Publish v1.1.5 (#707) 2018-05-26 11:29:10 -07:00
artiebits
407636a4d9 Don't open a site in a new tab if it's already open (#698)
* Don't open a site in a new tab if it's already open

* Remove opn from dependencies
2018-05-24 20:47:01 -07:00
Yangshun Tay
1a604d820b
Update tree-node-cli (#684) 2018-05-21 21:32:24 -07:00
Joel Marcey
96dd757bdc
Publish v1.1.1 (#681) 2018-05-21 13:56:37 -07:00
Yangshun Tay
923356e312 Shift opn to dependencies (#680) 2018-05-21 13:46:49 -07:00
Joel Marcey
cfaa8905ef
Publish version 1.1.0 (#679) 2018-05-21 08:27:18 -07:00
Amy Lam
f9a09072e3 Add LiveReload (#663) 2018-05-17 16:17:56 -07:00
Amy Lam
1796764b1c Print out directory tree during docusaurus-init (#665)
* WIP does not work

* rm -rf website/

Run docusaurus-init

Even by deleting text here, it still shows up? Confused.

* Shift in tree printing logic

* Shift printing logic to the current location
2018-05-15 20:06:44 -07:00
Agastya Darma
25cf8bb786 Migrate to React 16 (#655)
* migrating to react 16

* Add WarriorJS to Docusaurus users (#656)

* Separate users data from code

* Add WarriorJS to Docusaurus users

* [Feature] Introducing image compression using imagemin (#654)

* Introduce imagemin for compressing images

* Replace original images with the optimized ones

* Add imagemin-svgo to dependencies

* Remove console statement, replace let with const

* Replace let with const

* Add --skip-image-compression

* Run Prettier

* Fix header

* Prettier
2018-05-09 19:58:47 -07:00
Ahmad Alfy
ab6bab9f8d [Feature] Introducing image compression using imagemin (#654)
* Introduce imagemin for compressing images

* Replace original images with the optimized ones

* Add imagemin-svgo to dependencies

* Remove console statement, replace let with const

* Replace let with const

* Add --skip-image-compression

* Run Prettier
2018-05-09 16:59:36 -07:00
Paul O’Shannessy
c5b7744dd8 Regenerate package lock files (#649) 2018-05-07 16:11:07 -07:00
Yangshun Tay
1a6f2fc51c Add open in browser functionality (#643) 2018-05-07 09:46:14 -07:00
Yangshun Tay
159b80df94
Use cssnano to minify main CSS file (#569)
* Add cssnano to CSS generation

* Add babel-polyfill

* Call cssnano at the end

* Fix tests

* Add babelrc
2018-04-16 21:31:01 -07:00