Commit graph

1999 commits

Author SHA1 Message Date
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
endiliey
8c3cae35e3 chore(v2): changelog 2019-11-17 16:51:02 +07:00
Alexey Pyltsyn
79f3b9562c fix(v2): fix browser window menu icon on smaller screen (#2002) 2019-11-16 13:09:30 -08:00
Alexey Pyltsyn
4c7de3b5f1 fix(v2): improve UI of search (#2001) 2019-11-16 08:11:39 -08:00
Alexey Pyltsyn
11e84eb3ed fix(v2): remove accessible anchors via keyboard (#1991) 2019-11-16 17:41:23 +07:00
Endi
a4585ec49b
fix(v2): static phrasing content should be rendered correctly in TOC (#1992)
* fix(v2): static phrasing content should be rendered correctly in right TOC

* innerhtml in a
2019-11-16 17:41:12 +07:00
Alexey Pyltsyn
5d3b889169 fix(v2): remove hashbang when click on category (#1999)
* fix(v2): remove hashbang when click on collapsed item

* Refactor: rename handler
2019-11-15 10:14:12 -08:00
Nick McCormick
a65a57ba66 docs(v1): showcase user collective (#1998) 2019-11-14 22:56:30 -08:00
Endi
4e5a03fb88
fix(v2): throw error if first level item of a sidebar is not category (#1994) 2019-11-14 23:36:15 +07:00
Alexey Pyltsyn
472a1a660c docs(v2): fix syntax highlighting for YML code blocks (#1988) 2019-11-13 15:43:01 -08:00
Alexey Pyltsyn
0f0352d5b7 fix(v2): replace h1 tag with h2 in blog list pages (#1987) 2019-11-13 15:41:54 -08:00
Alexey Pyltsyn
ae1dec543e
fix(v2): make not clickable post title on post item page (#1962)
* fix(v2): make not clickable post title on post item page

* Refactor: move to props

* refactor: use explicit boolean value

* Revert last commit
2019-11-14 01:15:41 +03:00
Alexey Pyltsyn
b1867e99be
fix(v2): remove obsolete iframe attrs (#1986) 2019-11-14 01:12:36 +03:00
Alexey Pyltsyn
37ec85be97 fix(v2): use tag time for showing last update of doc item (#1981) 2019-11-13 11:03:30 -08:00
Alexey Pyltsyn
0f30077e63 feat(v2): add FB link to footer (#1982) 2019-11-13 23:06:54 +07:00
Endi
cf4037ef91
chore(v2): update dependencies (#1985)
* chore(v2): update dependencies

* use forked ideal image deps. omgg
2019-11-13 23:04:13 +07:00
endiliey
1c8c8d04e8 chore: automatically add labels to issues 2019-11-13 19:55:20 +07:00
Alexey Pyltsyn
9cbb7030fa fix(v2): remove invalid label attribute of footer links (#1980)
* fix(v2): remove invalid attributes of footer links

* Add rest props

* Fix override props
2019-11-13 17:42:46 +07:00
Alexey Pyltsyn
137e548aef fix(v2): use regular div instead of main tag for wrapper layout (#1978) 2019-11-13 00:14:37 -08:00
Alexey Pyltsyn
2493583fe2 fix(v2): move header inside article tag in doc page (#1975) 2019-11-13 00:05:32 -08:00
Endi
8242c0eb00 perf(v2): reduce main bundle size by using es5 if possible (#1979) 2019-11-13 00:01:04 -08:00
Vincent van der Walt
245b50f6e0 docs(v2): Add section to blog document about feed location (#1976)
* Add section in blog doc about feed location

* fix fenced code type
2019-11-13 13:10:20 +07:00
Alexey Pyltsyn
64d2ec2c77 fix(v2): add aria-label to read more links for a11y (#1977) 2019-11-13 13:08:01 +07:00
Alexey Pyltsyn
95e9963303 fix(v2): remove invalid attributes of nav links (#1974)
* fix(v2): remove nav links invalid attributes

* Refactor: add remaining props
2019-11-13 13:06:26 +07:00
Jamie Davenport
ffa6b71b1d docs(v2): update configureWebpack utility functions (#1970) 2019-11-12 17:35:12 +07:00
Endi
874b0638cd
refactor(v2): simplify blog truncate function (#1968)
* refactor(v2): simplify blog truncate function

* Update packages/docusaurus-plugin-content-blog/src/blogUtils.ts

Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com>
2019-11-12 16:25:33 +07:00
Alexey Pyltsyn
3823feb276 fix(v2): use tag time for showing post item date (#1964)
* fix(v2): use tag time for showing post item date

* refactor: use rem for font-size
2019-11-12 16:25:25 +07:00
Alexey Pyltsyn
6546c194fb feat(v2): add ability specify link in footer logo (#1965)
* feat(v2): add ability specify link in footer logo

* Refactor according review
2019-11-12 16:25:06 +07:00
Alexey Pyltsyn
3df601c2fa fix(v2): remove empty containers when no data in blog pages (#1963) 2019-11-11 20:48:39 -08:00
Alexey Pyltsyn
ed099da3ba fix(v2): remove duplicate meta tags (#1966) 2019-11-11 20:46:38 -08:00