Alexey Pyltsyn
1b2744570b
fix(v2): strip images and footnotes for excerpt correctly ( #2855 )
2020-06-01 18:36:02 +08:00
Alexey Pyltsyn
da0f865831
fix(v2): remove Markdown syntax from excerpt ( #2701 )
...
* fix(v2): remove Markdown syntax from excerpt
* Update snapshots
* Use Remark
* Switch to own solution
2020-05-18 19:57:03 +08:00
Alexey Pyltsyn
16dd08a690
refactor(v2): make semicolon optional in imports for excerpt ( #2696 )
2020-04-30 01:05:29 +08:00
Yangshun Tay
7d792840ba
misc: prettier
2020-04-22 20:39:11 +08:00
Alexey Pyltsyn
84fa4be865
fix(v2): ignore import declarations in excerpt ( #2380 )
...
* fix(v2): ignore import declarations in excerpt
* Update index.ts
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-22 20:28:14 +08:00
Alexey Pyltsyn
1f00d15c74
chore(v2): fix code style (revert previous changes)
2020-04-05 17:38:12 +03:00
Alexey Pyltsyn
6965a668cd
chore(v2): fix code style
2020-04-05 17:30:59 +03:00
Yangshun Tay
b07507c9cc
chore(v2): upgrade devDependencies ( #2538 )
...
* chore(v2): upgrade devDependencies
* chore(v2): upgrade devDependencies
* chore: prettier
2020-04-05 19:07:44 +08:00
Bartosz Kaszubowski
5d65facc81
refactor(v2): replace Lodash with single methods packages in utils ( #2536 )
2020-04-05 18:32:28 +08:00
Fanny
5e664a1f26
feat(v2): add edit url in post page ( #2524 )
...
* Add edit page url in docs
* feat(v2): Create EditPage component
* feat(v2): Improve component
* Add test
* çhore(v2): update description
* çhore(v2): update url
* fix(v2): test
* fix(v2): test
* feat(v2): change the prop of EditPage component
* chore(v2): Remove packages
* feat(v2): Update old tests
* chore(v2): fix package
* fix(v2): fix editUrl
* docs(v2): document editUrl
* --
* --
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-05 17:34:48 +08:00
Sam Zhou
da7fd1a186
fix(v2): unbreak blog-only mode routing by deplicating starting forward slashes ( #2497 )
2020-04-02 11:02:44 +08:00
Ramón Lamana
ed5a994c7e
fix(v2): properly dedupe forward slashes in the entire URL path ( #2405 )
2020-03-12 22:35:30 +08:00
Alexey Pyltsyn
68a5cd5df1
fix(v2): make proper path to pages in TS ( #2334 )
2020-02-27 09:59:02 +08:00
Yangshun Tay
32c1a92b17
chore: yearless copyright headers for source code ( #2320 )
...
* chore: yearless copyright headers for source code
* update snapshots
2020-02-25 23:12:28 +08:00
Yangshun Tay
996b115199
misc(v2): clean up comments in code ( #2294 )
2020-02-18 21:29:23 +08:00
Jonathan Delgado
5cb3309790
feat(v2): allow for TypeScript pages and components ( #2221 )
2020-01-20 10:55:50 +08:00
Endi
7f8aca2ddc
perf(v2): smaller bundlesize by embedding metadata to content ( #2088 )
...
* wip embed metadata to content
* embed metadata in blog as well
* refactor
* update test
* yarn lock
* avoid overwriting file everytime we run new nodejs process
* nits
2019-12-06 12:34:21 +07:00
Endi
32c9d07b90
perf(v2): improve dev build time by not overwriting file if possible ( #2089 )
...
* perf(v2): improve sequential build time by not overwriting file if possible
* minor improvement
* docs
2019-12-06 12:17:41 +07:00
endiliey
ceea69df2f
test(v2): add more test to normalizeUrl
2019-11-26 18:26:55 +07:00
Endi
3be2e86546
chore: bump dev dependencies ( #1955 )
...
* chore: bump devdeps
* upd infima url
2019-11-11 17:44:26 +07:00
Endi
639d8d3eac
perf(v2): skip runtime fileHash cache in prod & get timestamp asynchronously ( #1951 )
...
* skip hash calculation in prod when generating file
* perf: convert lastUpdated to be async process
* changelog
2019-11-08 23:35:39 +07:00
Endi
e04c8f140f
perf/fix(v2): more efficient hot reload & consistent filegen ( #1950 )
...
* perf(v2): efficient hot reload, consistent generated file
* changelog
* more
2019-11-08 17:14:14 +08: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
fabaf7772b
perf(v2): significantly reduce bundle size & initial html payload ( #1898 )
...
* perf(v2): reduce bundle size significantly with super short chunk name and registry
* changelog
* use hash:8 as id for better long term caching
* even shorter filename. slice contenthash
2019-10-27 07:09:19 -07:00
James George
d8b5323836
misc(v2): refactor utils code to be slightly more concise ( #1633 )
2019-07-05 11:16:57 -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
Yangshun Tay
23b50f17a1
refactor(v2): blog data revamp ( #1450 )
...
* refactor(v2): blog data revamp
* fix(v2): fix incorrect blog total count
* misc: remove console.log
* feat(v2): export frontMatter as an object within MDX file (#1451 )
* refactor. Don't confuse metadata & frontmatter
* export frontMatter in content itself
* nits
* nits name
* dont truncate first four lines in blog
2019-05-13 00:16:15 -07:00
Endi
6136fbe1d2
feat(v2): meta description ( #1447 )
...
* feat(v2): meta description
* add description for blog as well
* fix non-descriptive text link
* remove font awesome
* switch front-matter -> gray-matter
2019-05-10 22:37:56 +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
Endi
373d17ee72
refactor(v2): simplify code by removing wip i18n & translation ( #1431 )
...
* refactor(v2): remove i18n & versioning + cleaner code
* totally remove i18n and versioning from plugin
2019-05-02 17:24:47 +07:00
Endilie Yacop Sucipto
16bec1cb47
refactor(v2): use hash to compare generated content ( #1397 )
2019-04-26 09:25:00 -07:00
Yangshun Tay
96cb4672d5
feat(v2): implement ComponentCreator ( #1366 )
...
* v2(feat): convert blog to view-driven content queries
* feat(v2): port blog to use ContentRenderer
* misc(v2): fix test and change ContentRenderer url
* avoid chunkName collision
* avoid chunkname collision more
* fix(v2): fix content-renderer ssr problem (#1367 )
* wip
* avoid chunk names collision
* ContentRenderer is a wrapper for Loadable
* convert docs and pages
* nits and rename
* rename routeModules -> modules
* remove lodash from component creator
* resolve chunk not being picked up correctly
* add comment for explanation
* small refactoring
2019-04-16 22:18:29 +08:00
Endilie Yacop Sucipto
f0dc68d01a
feat(v2): code-split metadata out of routes ( #1359 )
...
* move assets-manifest to generatedFilesDir
* rename generateChunkName -> genChunkName
* implement docuHash and genComponentName
* feat(v2): code-split routes and metadata
* don't code split component code out
* simplify metadata path
* nits
* fix test
* address review
2019-04-13 12:37:05 +07:00
Endilie Yacop Sucipto
5872e2dd91
fix(v2): windows compatibility ( #1353 )
2019-04-10 15:30:30 +07:00
Yangshun Tay
4ac4a7c671
misc(v2): make packages dir more consistent
2019-04-01 22:18:44 -07:00