Skip to content

Commit

Permalink
v1.11.1 (#1592)
Browse files Browse the repository at this point in the history
* v1.11.1

* chore: publish new website

* misc: fix tests
  • Loading branch information
yangshun committed Jun 8, 2019
1 parent b2fe2a6 commit 3496f6e
Show file tree
Hide file tree
Showing 11 changed files with 802 additions and 485 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a

## [Unreleased]

## [1.11.1] - 2019-06-08

A bunch of dependency upgrades to resolve security issues.

## [1.11.0] - 2019-05-30

We added a new feature of highlighting the table of contents on the right side as you scroll the docs pages. A few bugs affecting local development were also fixed. More notably, the blog's left sidebar will not hide the post titles when `docsSideNavCollapsible` is turned on. This is a bugfix/backward-incompatible change depending on how you view it, but probably nobody wanted that collapsing behavior on the blog sidebar.
Expand Down Expand Up @@ -1120,7 +1124,8 @@ N/A
- Blog
- Documentation

[unreleased]: https://github.com/facebook/Docusaurus/compare/v1.11.0...HEAD
[unreleased]: https://github.com/facebook/Docusaurus/compare/v1.11.1...HEAD
[1.11.1]: https://github.com/facebook/Docusaurus/compare/v1.11.0...v1.11.1
[1.11.0]: https://github.com/facebook/Docusaurus/compare/v1.10.0...v1.11.0
[1.10.0]: https://github.com/facebook/Docusaurus/compare/v1.9.0...v1.10.0
[1.9.0]: https://github.com/facebook/Docusaurus/compare/v1.8.1...v1.9.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ exports[`server utils autoprefix css 1`] = `
"
`;

exports[`server utils minify css 1`] = `".hljs{margin-left:-15px;margin-right:-15px;border:1px solid #eee;border-radius:6px;padding:15px;font-size:15px;max-width:50rem}.hljs.javascript{background-color:rgba(247,223,30,.03)}.hljs .comment{opacity:.7}::placeholder{color:gray}"`;
exports[`server utils minify css 1`] = `".hljs{margin-left:-15px;margin-right:-15px;border:1px solid #eee;border-radius:6px;padding:15px;font-size:15px;max-width:50rem}.hljs.javascript{background-color:rgba(247,223,30,.03)}.hljs .comment{opacity:.7}::placeholder{color:grey}"`;

exports[`server utils minify css 2`] = `[Error: Unexpected "space" found.]`;
exports[`server utils minify css 2`] = `[Error: Expected a pseudo-class or pseudo-element.]`;
17 changes: 12 additions & 5 deletions packages/docusaurus-1.x/lib/server/__tests__/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jest.mock('../env', () => ({
}));

describe('server utils', () => {
test('minify css', () => {
test('minify css', async () => {
const testCss = fs.readFileSync(
path.join(__dirname, '__fixtures__', 'test.css'),
'utf8',
Expand All @@ -36,17 +36,24 @@ describe('server utils', () => {
path.join(__dirname, '__fixtures__', 'test.md'),
'utf8',
);
utils.minifyCss(testCss).then(css => expect(css).toMatchSnapshot());
utils.minifyCss(notCss).catch(e => expect(e).toMatchSnapshot());
const css = await utils.minifyCss(testCss);
expect(css).toMatchSnapshot();

try {
await utils.minifyCss(notCss);
} catch (error) {
expect(error).toMatchSnapshot();
}
});

test('autoprefix css', () => {
test('autoprefix css', async () => {
const testCss = fs.readFileSync(
path.join(__dirname, '__fixtures__', 'test.css'),
'utf8',
);

utils.autoPrefixCss(testCss).then(css => expect(css).toMatchSnapshot());
const css = await utils.autoPrefixCss(testCss);
expect(css).toMatchSnapshot();
});

test('getLanguage', () => {
Expand Down
7 changes: 4 additions & 3 deletions packages/docusaurus-1.x/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "docusaurus",
"description": "Easy to Maintain Open Source Documentation Websites",
"version": "2.0.0-alpha.19",
"version": "1.11.1",
"license": "MIT",
"keywords": [
"documentation",
Expand Down Expand Up @@ -35,15 +35,16 @@
"@babel/register": "^7.0.0",
"@babel/traverse": "^7.0.0",
"@babel/types": "^7.1.2",
"autoprefixer": "^9.1.5",
"autoprefixer": "^9.6.0",
"babylon": "^6.17.4",
"chalk": "^2.4.2",
"chokidar": "^3.0.1",
"classnames": "^2.2.6",
"color": "^2.0.1",
"commander": "^2.20.0",
"cross-spawn": "^6.0.5",
"crowdin-cli": "^0.3.0",
"cssnano": "^3.10.0",
"cssnano": "^4.1.0",
"escape-string-regexp": "^1.0.5",
"express": "^4.17.1",
"feed": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-init-1.x/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "docusaurus-init",
"description": "Initialization script for Docusaurus",
"version": "2.0.0-alpha.19",
"version": "1.11.1",
"license": "MIT",
"preferGlobal": true,
"keywords": [
Expand Down
Loading

0 comments on commit 3496f6e

Please sign in to comment.