Commit graph

2028 commits

Author SHA1 Message Date
Alexey Pyltsyn
10cd99b3e4 fix(v2): remove auto wrap for code blocks (#2048) 2019-11-25 10:24:52 -08:00
Alexey Pyltsyn
91ef5c67cf
docs(v2): make proper spelling of Stack Overflow (#2053) 2019-11-25 16:50:00 +03:00
Wei Gao
2254e08785 docs(v2): Reorganize migration guide (#2036)
* reorganize migration guide headings

* wip about <AUTOGENERATED_TABLE_OF_CONTENTS>

* add description about AUTOGENERATED_TABLE_OF_CONTENTS

* Update website/docs/migrating-from-v1-to-v2.md
2019-11-25 19:45:22 +07:00
Alexey Pyltsyn
9b4715a70d fix(v2): make proper spelling of Yarn in tabs (#2052) 2019-11-25 17:07:36 +07:00
Alexey Pyltsyn
82c751f092 fix(v2): hide past versions if it does not exist (#2050) 2019-11-25 16:16:23 +07:00
Endi
421f862701 breaking(v2): required nodejs version >=8.9 -> >=8.10 so we can use es2017 (#2045) 2019-11-24 21:40:57 -08:00
Endi
3abd2814b8 fix(v2): remove css order warning if css imports are not sorted (#2042) 2019-11-24 09:45:07 -08:00
Endi
0b463a0912 refactor(v2): stronger typing for route gen (#2043) 2019-11-24 09:44:42 -08:00
Binary Logic
3d4d89f332 docs(v2): showcase user vector.dev :) (#2040)
* chore(v2): Add vector.dev to the showcase :)

Signed-off-by: Ben Johnson <bjohnson@binarylogic.com>

* Fix preview image to remove tooltip

Signed-off-by: Ben Johnson <bjohnson@binarylogic.com>
2019-11-24 09:44:20 -08:00
Endi
05a2f46a9b
chore(v2): bump deps and run yarn upgrade (#2044) 2019-11-24 23:06:25 +07:00
endiliey
163c455b6c chore(v2): fix a11y contrast color, shorter announcement 2019-11-24 20:47:22 +07:00
Endi
160f6f53e0
docs(v2): add documentation on versioning (#2038)
* docs(v2): add documentation on versioning

* Proofread

* add section on using absolute import
2019-11-24 18:01:48 +07:00
endiliey
e15ab76542 chore(v2): fix remarkplugin unnecessary extra divs 2019-11-24 18:00:01 +07:00
Endi
9862a6821a feat(v2): allow non sidebar category to be first item of sidebar (#2032)
* feat(v2): allow non sidebar category to be first item of sidebar

* better error messages

* edit the react component

* Update website/docs/sidebar.md

* nits

* add @babel/plugin-transform-runtime
2019-11-23 20:08:19 -08:00
Endi
c533adc4aa docs(v2): display yarn and npm command on website (#2037)
* docs(v2): display yarn and npm command on website

* more

* fix div cannot be descendant p
2019-11-23 18:32:26 -08:00
Alexey Pyltsyn
3265dda895 refactor(v2): make better a11y for tabs (#1990)
* refactor(v2): make better a11y for tabs

* Update styles.module.css
2019-11-23 18:31:04 -08:00
Endi
3aa2ab6ab3 perf(v2): replace unnecessary json stringify(string) with inline string (#2039) 2019-11-23 18:24:19 -08:00
Endi
cea224b03d refactor(v2): move unused generated files out from build folder (#2033) 2019-11-23 18:16:04 -08:00
Endi
d1f84709e0 chore(v2): cut 2.0.0-alpha.36 docs & create versions page (#2030) 2019-11-23 18:13:16 -08:00
Endi
baabe1fdf9 perf(v2): use @babel/runtime plugin to reduce codesize (#2035) 2019-11-23 17:50:11 -08:00
Endi
670fd4e182 feat(v2): style sidebar on overflow (#2034) 2019-11-23 17:47:51 -08:00
Endi
2d15fadf16
chore(v2): bump deps and remove unused deps (#2029)
* chore(v2): deps bump

* remove unused deps
2019-11-22 17:55:22 +07:00
Endi
9829f56b1e
feat(v2): docs versioning ❄️🔥 (#1983)
* wip: versioning

* wip again

* nits lint

* refactor metadata code so that we can have inobject properties optimization, fix typing

* remove buggy permalink code

* modify versioned docs fixture such that foo/baz only exists in v1.0.0

* refactor metadata.ts so that there is less transformon object

* more refactoring

* reduce test fixtures, refactoring

* refactoring readability

* finish metadata part

* refactor with readdir

* first pass of implementation

* fix mdx laoder

* split generated routes by version for performance & smaller bundle

* test data for demo

* refactor with set

* more tests

* typo

* fix typo

* better temporary ui

* stronger typing & docsVersion command

* add 100% test coverage for docsVersion command

* more test and delete manual docs cut

* cut 2.0.0-alpha.35 docs

* cut alpha.36 instead

* copyright

* delete versioned docs

* stronger test on metadata

* update typo
2019-11-22 16:17:40 +07:00
endiliey
c413cff212 v2.0.0-alpha.36 2019-11-22 12:41:22 +07:00
endiliey
21e95f8640 chore(v2): docs for 2.0.0-alpha.36 2019-11-22 12:39:02 +07:00
Endi
4fab29fb21
refactor(v2): split out dark mode toggle so it is easily swizzle-able (#2013) 2019-11-22 12:31:28 +07:00
endiliey
d2a095bec0 1.14.2 2019-11-22 12:24:03 +07:00
Yangshun Tay
0984dfcde5 fix(v1): apply negative margin to docs heading only (#2028) 2019-11-22 12:14:31 +07:00
Gaurav Beriwal
a2c929824f docs(v1): showcase user Channelize.io (#2026)
* Update users.js

* Add files via upload

Uploading the logo to list as one of the companies using Docusaurus for documentation. Changes made to users.js file as well.

* Update users.js
2019-11-21 09:13:54 -08:00
Endi
205b367000 test(v2): babel exclude transpilation logic to prevent regression (#2024)
* refactor(v2): add tests to babel exclude transpilation logic to prevent regression

* stronger test
2019-11-21 08:15:46 -08:00
endiliey
b360b450d8 chore(v2): (nits) remove redundant lines 2019-11-21 14:20:49 +07:00
endiliey
5b3405bf56 v1.14.1 2019-11-21 12:43:37 +07:00
Endi
89911f6c4c
chore: changelog & docs for 1.14.1 (#2023) 2019-11-21 12:38:45 +07:00
Endi
bd68dce667
fix(v1): markdown content and toc should render the same (#2022)
* fix(v1): autogenerated_toc and sidebar toc should render the same

* revert test docs

* yarn.lock
2019-11-21 12:04:07 +07:00
Endi
91902ed709 feat(v2): style right sidebar scrollbar when overflow (#2017) 2019-11-20 20:46:33 -08:00
endiliey
3303257d78 chore: update codeowners 2019-11-21 00:37:40 +07:00
Endi
de2954352a
fix(v1): docusaurus-start should work even if path contain 'pages' word (#2020) 2019-11-20 23:52:19 +07:00
Endi
e544dc960a
fix(v1): consistent slug & hash-link generation (#2019) 2019-11-20 23:35:47 +07:00
Endi
6595f00fe6 feat(v2): add meta generator docusaurus (#2014) 2019-11-19 21:10:16 -08:00
Endi
088606653d
chore: bump & remove unused deps (#2015) 2019-11-19 16:04:23 +07:00
Yangshun Tay
65965e060a misc(v2): change blog front matter to snake_case (#1989)
* misc(v2): change blog front matter to snake_case

* Fix blog image url

* Add docs for change

* More migration docs
2019-11-19 15:08:53 +07:00
Yangshun Tay
edf4c16c93 feat(v2): allow hiding docs table of contents (#2012)
* feat(v2): allow hiding docs table of contents

* move to frontmatter
2019-11-19 15:08:45 +07:00
PA
1bf590ea2b fix(v1): fix page title render issue when referred by search result (#1869)
* fix(v1): Fix page title render issue when referred by search result

When Algolia DocSearch query finds a match for a page's title, it attempts to generate
a permalink. Because the page title element (`h1`) does not have an `id`, Algolia
generates uses the `id` from closes parent element. Because of this, the page title
scrolls to a position that is slightly overlayed by the fixed top navigation bar.

This fix sets an `id` for the page title so that the search result is able to generate
a more accurate permalink.

* Adjust css for handling post title to be on the top when referred by an anchor

The post title can sometimes be referred by an anchor using the "id" of that element.
In that case the title will be automatically be the first element within the viewport.
Since we have a header fixed at the top of the view port, the title becomes hidden or
not visible. That's why some css adjustments are needed so that if any user ends up
with a link to a page that is referring to the post title (i.e. auto generated anchor
link by algolia DocSearch).

The css code uses pseudo element `:before` to make the adjustments. Details on this
can be found in the following article:

https://css-tricks.com/hash-tag-links-padding/

* Adjust CSS so that different selectors are on separate lines
2019-11-18 11:07:02 -08:00
Yangshun Tay
c16407c95a
docs(v2): misc updates (#2010) 2019-11-17 06:43:41 -08:00
Yangshun Tay
7abe643f8d
misc(v2): branding update (#2009) 2019-11-17 06:43:32 -08:00
yangshun
29ce98c63a docs(v2): misc updates 2019-11-17 05:44:21 -08:00
Endi
b5cbaee9c1 feat(v2): only create one css file to avoid code-split css loading problem (#2007)
* feat(v2): only create one css file to avoid code-split css loading problem

* nits
2019-11-17 04:48:27 -08:00
Alexey Pyltsyn
dec9c1279c refactor(v2): improve semantic markup of blog (#2003)
* refactor(v2): improve semantic markup of blog

* Refactor/simplify
2019-11-17 04:00:11 -08:00
Alexey Pyltsyn
dda10beea6 fix(v2): adjust first-level heading offset (#2005) 2019-11-17 03:10:09 -08:00
endiliey
6204d9a9ec v2.0.0-alpha.35 2019-11-17 16:51:57 +07:00