Skip to content

Commit 9e6f5eb

Browse files
committed
Update branches
1 parent 883b745 commit 9e6f5eb

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

components/Docs/PageActions.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const PageActions: React.FunctionComponent<IPageActionsProps> = ({ page }
1717
<div className={`mt-16 mb-8`}>
1818
<a
1919
className={`flex items-center text-whisper-900 hover:text-whisper-500`}
20-
href={`${Extension.githubDocs}/edit/${CONFIG.environment === "production" ? "main" : "dev"}/content/docs/${page.fileName}.md`}
20+
href={`${Extension.githubDocs}/edit/${CONFIG.environment === "production" ? "main" : "beta"}/content/docs/${page.fileName}.md`}
2121
target="_blank"
2222
rel={`noopener noreferrer`}>
2323
<PencilIcon className={`w-4 h-4 mr-2`} /> <span>Edit page</span>

components/Docs/PageInfo.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const PageInfo: React.FunctionComponent<IPageInfoProps> = ({ page, items
103103
}
104104

105105
<div className="mt-2 text-sm">
106-
<p>Did you spot an issue in our documentation, or want to contribute? Edit this page on <a className={`text-teal-500 hover:text-teal-900`} href={`${Extension.githubDocs}/edit/${CONFIG.environment === "production" ? "main" : "dev"}/content/docs/${page.fileName}.md`} target="_blank" rel={`noopener noreferrer`}>Github</a>!</p>
106+
<p>Did you spot an issue in our documentation, or want to contribute? Edit this page on <a className={`text-teal-500 hover:text-teal-900`} href={`${Extension.githubDocs}/edit/${CONFIG.environment === "production" ? "main" : "beta"}/content/docs/${page.fileName}.md`} target="_blank" rel={`noopener noreferrer`}>Github</a>!</p>
107107
</div>
108108
</div>
109109
</>

scripts/verify-commands.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ const core = require("@actions/core");
1111

1212
console.log(`Checking commands for branch: ${branch}`);
1313

14-
const pkgUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${
15-
production ? "main" : "dev"
16-
}/package.json`;
14+
const pkgUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${production ? "main" : "beta"
15+
}/package.json`;
1716

1817
const response = await fetch(pkgUrl);
1918
if (!response.ok) {

scripts/verify-settings.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ const { exit } = require('process');
55
const core = require('@actions/core');
66

77
(async () => {
8-
const branch = process.argv[process.argv.length-1];
8+
const branch = process.argv[process.argv.length - 1];
99
const production = branch.toLowerCase() === "main";
1010

1111
console.log(`Checking settings for branch: ${branch}`)
1212

13-
const pkgUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${production ? "main" : "dev"}/package.json`;
13+
const pkgUrl = `https://raw.githubusercontent.com/estruyf/vscode-front-matter/${production ? "main" : "beta"}/package.json`;
1414

1515
const response = await fetch(pkgUrl);
1616
if (!response.ok) {
17-
return;
17+
return;
1818
}
1919

2020
let contents = await response.text();

0 commit comments

Comments
 (0)