Commit graph

2028 commits

Author SHA1 Message Date
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
Eric Carboni
b027db1b34 docs(v1): remove exclusive language (#1961)
* Initial commit to replace easy, easily, simple, just, of course

* Revert ordered list change
2019-11-11 14:06:54 -08:00
endiliey
f1180d0eb6 v2.0.0-alpha.34 2019-11-11 21:35:03 +07:00
endiliey
5c652aacba chore(v2): 2.0.0-alpha.34 changelog 2019-11-11 21:34:41 +07:00
Endi
6a3efd5f3d
breaking(v2): editUrl should point to website instead of docsDir to support editUrl in versioning/trans (#1958) 2019-11-11 21:24:04 +07:00
Endi
1235fc9f7e
refactor(v2): avoid synchronous/ blocking operation when possible (#1957)
* perf(v2): avoid synchronous/ blocking operation when possible

* save variable
2019-11-11 20:56:23 +07:00
Endi
5e445a0011 fix(v2): useTOC hooks should not be called in each nested children (#1959)
* fix(v2): useTOC hooks should not be called in each nested children

* fragment

* rename -> DocTOC
2019-11-11 04:56:21 -08:00
Alexey Pyltsyn
9e290c9b43 feat(v2): add ability disable dark mode toggle (#1956) 2019-11-11 04:41:54 -08:00
Endi
3be2e86546
chore: bump dev dependencies (#1955)
* chore: bump devdeps

* upd infima url
2019-11-11 17:44:26 +07:00
Yangshun Tay
72792a1e5c
fix(v2): update Infima website URL (#1953) 2019-11-09 01:09:41 +08:00
Endi
58751b4e1a chore(v2): add lerna-changelog (#1952) 2019-11-09 00:58:56 +08: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
endiliey
87f864e5ba chore(v2): changelog for 2.0.0-alpha.33 2019-11-08 13:45:02 +07:00
endiliey
e6b077410c v2.0.0-alpha.33 2019-11-08 13:27:03 +07:00
Endi
a54a1dd186 fix(v2): babel/env should pick correct browserslist config in dev (#1948)
* fix(v2): babel/env should pick correct browserslist config in dev

* nits
2019-11-08 14:15:02 +08:00
Endi
fc4928f7a6
fix(v2): more consistent route config generation (#1946)
* fix(v2): more consistent route config generation

* nits

* snapshot

* address review & test upd

* reduce 2xloop -> 1x loop in docs plugin

* nits
2019-11-08 11:55:48 +07:00
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
feb804cb83 test(v2): add tests for docs markdown link replacement (#1944)
* refactor(v2): simplify & add tests for docs markdown link replacement

* nits
2019-11-06 23:54:37 +08:00
Endi
3048942aef fix(v2): hash-link should not be cut-off in doc container (#1942)
* fix(v2): hash-link should not be cut-off in doc container

* nits
2019-11-06 23:54:09 +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
Pawel Kadluczka
ff83e6f8bc feat(v2): Implement plugin creating feed for blog posts (#1916)
* feat(v2): Implement feed for blog posts

Fixes: #1698

Test plan:
- added tests

Ran `yarn build` on website with the following config (and disabled blog
from preset-classic):

```js
[
'@docusaurus/plugin-content-blog',
  {
    path: '../website-1.x/blog',
    feedOptions: {
      copyright: 'Copy',
      type: 'atom',
    },
  },
],
```
which genereted the following feed:
```xml
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <id>https://v2.docusaurus.io/blog</id>
    <title>Docusaurus Blog</title>
    <updated>2018-12-14T00:00:00.000Z</updated>
    <generator>https://github.com/jpmonette/feed</generator>
    <link rel="alternate" href="https://v2.docusaurus.io/blog"/>
    <subtitle>Docusaurus Blog</subtitle>
    <icon>https://v2.docusaurus.io/img/docusaurus.ico</icon>
    <rights>Copy</rights>
    <entry>
        <title type="html"><![CDATA[Happy 1st Birthday Slash!]]></title>
        <id>Happy 1st Birthday Slash!</id>
        <link href="https://v2.docusaurus.io/blog/2018/12/14/Happy-First-Birthday-Slash"/>
        <updated>2018-12-14T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[![First Birthday Slash](/img/docusaurus-slash-first-birthday.svg)]]></summary>
    </entry>
    <entry>
        <title type="html"><![CDATA[Towards Docusaurus 2]]></title>
        <id>Towards Docusaurus 2</id>
        <link href="https://v2.docusaurus.io/blog/2018/09/11/Towards-Docusaurus-2"/>
        <updated>2018-09-11T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Docusaurus was [officially announced](https://docusaurus.io/blog/2017/12/14/introducing-docusaurus) over nine months ago as a way to easily build open source documentation websites. Since then, it has amassed over 8,600 GitHub Stars, and is used by many popular open source projects such as [React Native](https://facebook.github.io/react-native/), [Babel](https://babeljs.io/), [Jest](https://jestjs.io/), [Reason](https://reasonml.github.io/) and [Prettier](https://prettier.io/).]]></summary>
    </entry>
    <entry>
        <title type="html"><![CDATA[How I Converted Profilo to Docusaurus in Under 2 Hours]]></title>
        <id>How I Converted Profilo to Docusaurus in Under 2 Hours</id>
        <link href="https://v2.docusaurus.io/blog/2018/04/30/How-I-Converted-Profilo-To-Docusaurus"/>
        <updated>2018-04-30T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[> _“Joel and I were discussing having a website and how it would have been great to launch with it. So I challenged myself to add Docusaurus support. It took just over an hour and a half. I'm going to send you a PR with the addition so you can take a look and see if you like it. Your workflow for adding docs wouldn't be much different from editing those markdown files.”_]]></summary>
    </entry>
    <entry>
        <title type="html"><![CDATA[Introducing Docusaurus]]></title>
        <id>Introducing Docusaurus</id>
        <link href="https://v2.docusaurus.io/blog/2017/12/14/introducing-docusaurus"/>
        <updated>2017-12-14T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[![Introducing Slash](/img/slash-introducing.svg)]]></summary>
    </entry>
</feed>
```

* new feedOptions type 'all' and use correct path
2019-11-06 14:45:31 +07:00