Skip to content

Commit 32a3da4

Browse files
committed
Rename main branch
1 parent bfa17e3 commit 32a3da4

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Markdown To Document
22

33
[![version](https://img.shields.io/npm/v/markdown-to-document?color=informational&style=flat-square)](https://www.npmjs.com/package/markdown-to-document)
4-
[![license](https://img.shields.io/npm/l/markdown-to-document?color=informational&style=flat-square)](https://raw.githubusercontent.com/GaelGirodon/markdown-to-document/master/LICENSE)
4+
[![license](https://img.shields.io/npm/l/markdown-to-document?color=informational&style=flat-square)](https://raw.githubusercontent.com/GaelGirodon/markdown-to-document/main/LICENSE)
55
[![node](https://img.shields.io/node/v/markdown-to-document?style=flat-square)](https://nodejs.org/download/)
66
[![build](https://img.shields.io/github/actions/workflow/status/GaelGirodon/markdown-to-document/main.yml?branch=develop&style=flat-square)](https://github.com/GaelGirodon/markdown-to-document/actions/workflows/main.yml)
77
[![tests](https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fgist.githubusercontent.com%2FGaelGirodon%2Ffbde4d59b7dd3c4f2cc9c4fea3497ae1%2Fraw%2Fmarkdown-to-document-junit-tests.json)](https://github.com/GaelGirodon/markdown-to-document/actions/workflows/main.yml)
@@ -113,7 +113,7 @@ Highlight style enables syntax highlighting of code blocks by including the
113113
required script and style in the HTML layout.
114114

115115
The `--highlight-style` option can receive the name of a
116-
[Hightlight.js style](https://github.com/highlightjs/highlight.js/tree/master/src/styles)
116+
[Hightlight.js style](https://github.com/highlightjs/highlight.js/tree/main/src/styles)
117117
(file name without extension, e.g. `monokai`), or the path to a custom style
118118
file (a local path or an HTTP URL).
119119

@@ -238,7 +238,7 @@ are now embedded into the output HTML file.
238238
**Use a custom layout (local file) and a custom highlight style (URL)**
239239

240240
```shell
241-
mdtodoc doc.md -l "./assets/layouts/page.html" -t "github" -s "https://raw.githubusercontent.com/highlightjs/highlight.js/master/src/styles/monokai.css" -n -c
241+
mdtodoc doc.md -l "./assets/layouts/page.html" -t "github" -s "https://raw.githubusercontent.com/highlightjs/highlight.js/main/src/styles/monokai.css" -n -c
242242
```
243243

244244
Read [options documentation](#options) for more information on how to use

scripts.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ release:
3636
publish:
3737
step_by_step: true
3838
script:
39-
- git switch master
39+
- git switch main
4040
- npm run build:assets
4141
- npm pack
4242
- rm *.tgz

test/net.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe("request", () => {
77
try {
88
const text = (
99
await request(
10-
"https://raw.githubusercontent.com/GaelGirodon/markdown-to-document/master/README.md"
10+
"https://raw.githubusercontent.com/GaelGirodon/markdown-to-document/develop/README.md"
1111
)
1212
).body.toString("utf8");
1313
assert.isString(text);
@@ -30,7 +30,7 @@ describe("request", () => {
3030
let error;
3131
try {
3232
await request(
33-
"https://raw.githubusercontent.com/GaelGirodon/markdown-to-document/master/NOTFOUND.md"
33+
"https://raw.githubusercontent.com/GaelGirodon/markdown-to-document/develop/NOTFOUND.md"
3434
);
3535
} catch (e) {
3636
error = e;

test/processor.test.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ describe("Processor", () => {
251251
it("should use a custom layout (local file) and a custom theme and highlight style (URL)", async () => {
252252
const proc = new Processor({
253253
layout: buildPath("assets/layouts/page.html"),
254-
theme: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
255-
highlightStyle: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
254+
theme: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
255+
highlightStyle: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
256256
numberedHeadings: true,
257257
codeCopy: true,
258258
embedMode: "full",
@@ -264,9 +264,9 @@ describe("Processor", () => {
264264
});
265265
it("should use a custom layout, theme and highlight style (URL)", async () => {
266266
const proc = new Processor({
267-
layout: `${github}/GaelGirodon/markdown-to-document/master/assets/layouts/page.html`,
268-
theme: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
269-
highlightStyle: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
267+
layout: `${github}/GaelGirodon/markdown-to-document/develop/assets/layouts/page.html`,
268+
theme: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
269+
highlightStyle: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
270270
numberedHeadings: true,
271271
codeCopy: true,
272272
embedMode: "full",
@@ -279,8 +279,8 @@ describe("Processor", () => {
279279
it("should fail if the custom layout doesn't exist (local file)", async () => {
280280
const proc = new Processor({
281281
layout: buildPath("assets/layouts/unknown.html"),
282-
theme: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
283-
highlightStyle: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
282+
theme: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
283+
highlightStyle: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
284284
numberedHeadings: true,
285285
codeCopy: true,
286286
embedMode: "full",
@@ -295,9 +295,9 @@ describe("Processor", () => {
295295
});
296296
it("should fail if the custom layout doesn't exist (URL)", async () => {
297297
const proc = new Processor({
298-
layout: `${github}/GaelGirodon/markdown-to-document/master/assets/layouts/unknown.html`,
299-
theme: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
300-
highlightStyle: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
298+
layout: `${github}/GaelGirodon/markdown-to-document/develop/assets/layouts/unknown.html`,
299+
theme: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
300+
highlightStyle: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
301301
numberedHeadings: true,
302302
codeCopy: true,
303303
embedMode: "full",

0 commit comments

Comments
 (0)