mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 16:59:06 +02:00
chore(v2): update changelog
This commit is contained in:
parent
281f02279f
commit
568d9fd7dd
7 changed files with 13 additions and 6 deletions
|
@ -1,13 +1,19 @@
|
|||
# Docusaurus 2 Changelog
|
||||
|
||||
## Unreleased
|
||||
## 2.0.0-alpha.20
|
||||
|
||||
- Added Google analytics and Google gtag plugins.
|
||||
- Moved source components to `/src`. Please create a `website/src` directory and move your `/pages` and `/theme` code into it. This is to make it easier to integrate your website with external build/static analysis tooling (you can now just pass in `src/**/*.js` as the path to process).
|
||||
- Added more documentation thanks to @wgao19.
|
||||
- Deprecate the current docs plugin. The docs plugin as of 2.0.0-alpha.19 is heavily based on V1 specifications and we intend to create a better one that fixes some of the inconsistencies in V1. If you have swizzled any doc components, you will have to update their names. You are highly encourages to not swizzle the legacy doc components until we have completed the new docs plugin.
|
||||
- Render the NotFound page if an unspecified route was accessed.
|
||||
- Separate v2 init command to new package @docusaurus/init
|
||||
- Render 404.html page
|
||||
- Improve SEO
|
||||
- Clicking on the logo in the mobile sliding navigation will now bring you to the homepage.
|
||||
- Performance
|
||||
- Disable webpack output pathinfo. Webpack has the ability to generate path info in the output bundle. However, this puts garbage collection pressure on projects that bundle thousands of modules. Not very useful for our case
|
||||
- Drop cache-loader in CI and test environment because it has an initial overhead. We always start from scratch in vm instance like CI so cache-loader is useless
|
||||
- Better splitchunks and babel default webpack config
|
||||
|
||||
## 2.0.0-alpha.19
|
||||
|
||||
|
|
|
@ -3,8 +3,6 @@ id: configuration
|
|||
title: Configuration
|
||||
---
|
||||
|
||||
<!-- Goal: To explain the intention and best practices for configurations -->
|
||||
|
||||
Docusaurus has a unique take on configurations. We encourage you to congregate information of your site into one place. We will guard the fields of this file, and facilitate making this data object accessible across your site.
|
||||
|
||||
Keeping a well-maintained `docusaurus.config.js` helps you, your collaborators, and your open source contributors be able to focus on documentation while still being able to easily customize fields.
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
id: introduction
|
||||
title: Introduction
|
||||
description: Docusaurus was designed from the ground up to be easily installed and used to get your website up and running quickly.
|
||||
---
|
||||
|
||||
#### :warning: Disclaimers
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
id: markdown-features
|
||||
title: Markdown Features
|
||||
description: Docusaurus uses GitHub Flavored Markdown (GFM). Find out more about Docusaurus-specific features when writing Markdown.
|
||||
---
|
||||
|
||||
<!--
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
id: motivation
|
||||
title: Motivation
|
||||
description: Motivation of Docusaurus
|
||||
---
|
||||
|
||||
#### References
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
id: styling-layout
|
||||
title: Styling and Layout
|
||||
description: A Docusaurus site is a pre-rendered single-page React application. You can style it the way you style React apps.
|
||||
---
|
||||
|
||||
## Traditional CSS
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
---
|
||||
id: using-plugins
|
||||
title: Using Plugins
|
||||
description: A plugin is a package that exports a class which can be instantiated with configurable options (provided by the user) and its various lifecycle methods will be invoked by the Docusaurus runtime.
|
||||
---
|
||||
|
||||
<!-- A plugin is a package that exports a class which can be instantiated with configurable options (provided by the user) and its various lifecycle methods will be invoked by the Docusaurus runtime. -->
|
||||
|
||||
Plugins are the building blocks which add features to a Docusaurus 2 site. Each plugin handles its own individual feature. Plugins may work be bundled together and distributed via [presets](advanced-presets.md).
|
||||
|
||||
Docusaurus 2 provides a few essential plugins such as [Google Analytics](advanced-plugins.md#docusaurusplugin-google-analytics) and [Sitemap](advanced-plugins.md#docusaurusplugin-sitemap). You may also write your own plugins for customized features.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue