Skip to content

Commit

Permalink
Rename main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
GaelGirodon committed Aug 29, 2023
1 parent bfa17e3 commit 37794e6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Markdown To Document

[![version](https://img.shields.io/npm/v/markdown-to-document?color=informational&style=flat-square)](https://www.npmjs.com/package/markdown-to-document)
[![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)
[![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)
[![node](https://img.shields.io/node/v/markdown-to-document?style=flat-square)](https://nodejs.org/download/)
[![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)
[![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)
Expand Down Expand Up @@ -113,8 +113,8 @@ Highlight style enables syntax highlighting of code blocks by including the
required script and style in the HTML layout.

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

#### Additional features
Expand Down Expand Up @@ -238,7 +238,7 @@ are now embedded into the output HTML file.
**Use a custom layout (local file) and a custom highlight style (URL)**

```shell
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
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
```

Read [options documentation](#options) for more information on how to use
Expand Down
2 changes: 1 addition & 1 deletion scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ release:
publish:
step_by_step: true
script:
- git switch master
- git switch main
- npm run build:assets
- npm pack
- rm *.tgz
Expand Down
4 changes: 2 additions & 2 deletions test/net.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("request", () => {
try {
const text = (
await request(
"https://raw.githubusercontent.com/GaelGirodon/markdown-to-document/master/README.md"
"https://raw.githubusercontent.com/GaelGirodon/markdown-to-document/develop/README.md"
)
).body.toString("utf8");
assert.isString(text);
Expand All @@ -30,7 +30,7 @@ describe("request", () => {
let error;
try {
await request(
"https://raw.githubusercontent.com/GaelGirodon/markdown-to-document/master/NOTFOUND.md"
"https://raw.githubusercontent.com/GaelGirodon/markdown-to-document/develop/NOTFOUND.md"
);
} catch (e) {
error = e;
Expand Down
20 changes: 10 additions & 10 deletions test/processor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ describe("Processor", () => {
it("should use a custom layout (local file) and a custom theme and highlight style (URL)", async () => {
const proc = new Processor({
layout: buildPath("assets/layouts/page.html"),
theme: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
highlightStyle: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
theme: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
highlightStyle: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
numberedHeadings: true,
codeCopy: true,
embedMode: "full",
Expand All @@ -264,9 +264,9 @@ describe("Processor", () => {
});
it("should use a custom layout, theme and highlight style (URL)", async () => {
const proc = new Processor({
layout: `${github}/GaelGirodon/markdown-to-document/master/assets/layouts/page.html`,
theme: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
highlightStyle: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
layout: `${github}/GaelGirodon/markdown-to-document/develop/assets/layouts/page.html`,
theme: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
highlightStyle: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
numberedHeadings: true,
codeCopy: true,
embedMode: "full",
Expand All @@ -279,8 +279,8 @@ describe("Processor", () => {
it("should fail if the custom layout doesn't exist (local file)", async () => {
const proc = new Processor({
layout: buildPath("assets/layouts/unknown.html"),
theme: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
highlightStyle: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
theme: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
highlightStyle: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
numberedHeadings: true,
codeCopy: true,
embedMode: "full",
Expand All @@ -295,9 +295,9 @@ describe("Processor", () => {
});
it("should fail if the custom layout doesn't exist (URL)", async () => {
const proc = new Processor({
layout: `${github}/GaelGirodon/markdown-to-document/master/assets/layouts/unknown.html`,
theme: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
highlightStyle: `${github}/highlightjs/highlight.js/master/src/styles/monokai.css`,
layout: `${github}/GaelGirodon/markdown-to-document/develop/assets/layouts/unknown.html`,
theme: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
highlightStyle: `${github}/highlightjs/highlight.js/main/src/styles/monokai.css`,
numberedHeadings: true,
codeCopy: true,
embedMode: "full",
Expand Down

0 comments on commit 37794e6

Please sign in to comment.