Commit graph

380 commits

Author SHA1 Message Date
Endi
384e83a737
chore(v2): upgrade deps (#1945)
* chore(v2): upgrade dependencies

* revert TS 3.7 optional chaining
2019-11-07 13:32:55 +07:00
Endi
baa884fe2e fix(v2): fix chokidar/watcher does not trigger reload on windows (#1943)
* fix(v2): fix chokidar/watcher does not trigger reload on windows

* nits

* nits

* stronger test
2019-11-06 23:52:40 +08:00
Endi
1844c2bdd6
chore(v2): upgrade dependencies (#1865)
* chore(v2): upgrade dependencies

* nits
2019-10-21 12:25:30 +07:00
Endi
d96b5f99b9 fix(v2): swizzle should receive correct load context (#1844)
* fix(v2): swizzle should receive correct load context

* new prettier version

* niits
2019-10-16 08:56:09 -07:00
Endi
48db8b8e09
refactor(v2): simplify & faster last updated logic for docs (#1832)
* refactor(v2): simplify last updated logic for faster dev

* Update packages/docusaurus-plugin-content-docs/src/__tests__/lastUpdate.test.ts

* Update packages/docusaurus-plugin-content-docs/src/__tests__/lastUpdate.test.ts
2019-10-12 10:30:22 +08:00
Endi
ae678c9dad feat(v2): add editUrl option to docs plugin (#1818)
* feat(v2): add editUrl option to docs plugin

* nits

* misc(v2): nit

* misc(v2): nit
2019-10-10 11:10:18 -07:00
Endi
1591128cdd
refactor(v2): add typing for docs plugin (#1811)
* refactor(v2): add typing for docs plugin

* nits
2019-10-07 18:28:33 +07:00
Endi
0397f7b719
chore(v2): upgrade babel, webpack, and mdx (#1798)
* chore: upgrade babel, webpack, and mdx

* changelog
2019-09-24 18:55:07 +08:00
Dongwoo Gim
4cecdc6db1 chore: add ts,tsx to lint-staged (#1796) 2019-09-22 21:25:52 +08:00
Endi
55ef751f26 feat(v2): use contenthash instead of chunkhash for longterm caching (#1686)
* feat(v2): use contenthash instead of chunkhash for longterm caching

* changelog
2019-07-21 10:11:39 -07:00
Endi
0daed4abec feat(v2): optimize dev by omiting production only plugins (#1673) 2019-07-18 11:18:03 -07:00
Endi
96d6369985
chore(v1.v2): upgrade a lot of packages deps (#1668)
* chore(v2): upgrade a lot of v2 packages deps

* chore(v1): upgrade a lot of v1 packages deps
2019-07-17 22:59:13 +07:00
Endi
d61cc01217
feat(v2): @docusaurus/init package (#1655)
* feat(v2): separate v2 docusaurus/init package

* nits

* docs

* rm unwanted

* readme
2019-07-14 01:06:23 +07:00
Endi
60f9228d67
chore(v2): upgrade typescript deps (#1611) 2019-06-16 00:00:12 +08:00
Hongarc
594ede3bdc chore: remove @types/chalk and @types/globby (#1540)
* chore: remove `@types/chalk` and `@types/globby`

* chore: update `chalk` and `globby`
2019-06-02 19:04:48 +07:00
endiliey
d52e6d3c3f chore(v2): fix TS definition & workspaces config 2019-05-25 23:48:12 +08:00
Endi
aa157969cf
chore(v2): cleanup & update deps (#1505)
* chore(v2): rename useBaseUrl -> withBaseUrl & update deps

* nits
2019-05-22 19:20:53 +07:00
Yangshun Tay
3fc3644875 feat(v2): create useBaseURL helper (#1503)
* feat(v2): create withBaseURL helper

* typescript & refactor

* nits
2019-05-22 17:32:52 +07:00
Endi
a45f8cab68
chore(v2): add @types/webpack-dev-server and @types/react-dev-utils (#1496) 2019-05-21 13:58:14 +07:00
Endi
305e698e6e refactor(v2): migrate core to Typescript ❄️🌀🐋 (#1494)
* refactor(v2): add typing for docusaurus/core

* wip: last working

* refactor(v2): add typing for @docusaurus/core

* prettier

* dont run in parallel otherwise some are uncompiled

* nits

* more typing

* more typing

* nits

* type commands

* nits
2019-05-20 09:59:04 -07:00
Endi
cbd2a589e3 refactor(v2): migrate to Typescript ❄️🌀🐋 (#1490)
* refactor(v2): migrate to typescript

* scripts nits

* fix test

* nits

* nits

* tsconfig tweak
2019-05-18 11:37:35 -07:00
Endi
e31bf50545
chore(v2): update dependencies (#1462)
* chore(v2): update dependencies

* nits
2019-05-16 14:33:32 +07:00
Endi
56cd3a22ce
chore(v2): rm flowtype (#1444) 2019-05-09 18:32:56 +07:00
Endi
c2ebde997a
refactor(v2): add flowtype + refactor test (#1443)
* chore(v2): add flow setup

* nits

* fix

* add flow-typed

* ignore compiled library

* fix error

* fix typing

* fix module name mapper

* setup for @docusaurus/core

* dont try remove type without @flow

* fix can't find @docusaurus/utils

* fix test

* remove obscure relative paths

* more refactoring

* add typing for server/load/theme.js

* no need to ship .flow source
2019-05-08 23:03:52 +07:00
Zach Badgett
0813920349 refactor: refactor code tab split (#1369)
* refactor: refactor code tab split

* Add split tab unit test

* Fix code tab list bug
2019-05-01 20:57:13 -07:00
Endilie Yacop Sucipto
1bd2640749
chore(v2): update dependency (#1316) 2019-03-28 23:12:28 +08: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
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
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
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
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
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
endiliey
48f273e68f v2: ignore v2 folder for now 2018-09-17 12:06:23 +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
Julien Odent
0a3f0ecdc5 Renamed Sonar to Flipper (#905)
* Noticed caption was "Sonar" but redirecting to https://fbflipper.com.
* Fixed caption and renamed files for consistency.
* Moved project after FastText to keep alphabetical ordering.
* Ran prettier and included changes.

Test plan:
  npm run test && npm run prettier && npm run lint

  cd website && npm run start

Noticed projects are rendered properly and caption is now "Flipper".
2018-08-17 09:39:20 -07: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
Endilie Yacop Sucipto
42a96696a4
chore: delete unused/ old file (#881) 2018-08-02 00:52:50 +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
Endilie Yacop Sucipto
9f718a5097 Refactor + add more tests (Part 2) (#854)
* Refactor doc in server.js & generate.js

* Refactor finding metadata with find() & avoid param reassign

* Refactor replacing markdown link to html + add test

* Minify func to getFile & add test

* use ./ for md link as well

* nits & better test

* better mdToHtmlify

* babel-register on versions & write-translations to transpile ES6 in server/env.js

* better docs test & move out metadata to fixtures

* Update .babelrc
2018-07-16 01:45:23 -07:00
Yangshun Tay
a7a214fb3a ESLintify Part 3 (#846)
* ESLintify Part 3

* ESLintify Part 3

* ESLintify Part 3
2018-07-11 18:21:31 +08:00
Yangshun Tay
5ac2cee658
ESLintify Part 2 (#841)
* ESLintify Part 2

* Fix

* Fix tests

* Fix tests

* Fix tests
2018-07-10 21:53:08 -07:00
Yangshun Tay
4267337fb0
Fix CSS tests (#839)
* Fix CSS tests

* Revamp

* -

* fix failing test

* add test for minifyCss with fixtures & snapshot

* remove unintended addition

* simplify the test.css
2018-07-10 10:42:32 -07:00