mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
Fixes to testing guide (for Windows only) (#304)
* Fixes to testing guide (for Windows only) * Fixed line ending detection for UNIX and Windows * Removed incorrect instructions about translations * Removed redudant heading and turned it into a note.
This commit is contained in:
parent
1db69285e5
commit
21cbece838
4 changed files with 15 additions and 10 deletions
|
@ -81,7 +81,8 @@ function readSidebar() {
|
|||
|
||||
// split markdown header
|
||||
function splitHeader(content) {
|
||||
const lines = content.split('\n');
|
||||
// New line characters need to handle all operating systems.
|
||||
const lines = content.split(/\r?\n/);
|
||||
if (lines[0] !== '---') {
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue