Skip to content

Commit

Permalink
0.6.0: quiz, reload hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
HadesArchitect committed Jul 25, 2022
1 parent c5bbc0f commit 4e2521c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"url": "https://github.com/HadesArchitect/katapod"
},
"description": "",
"version": "0.5.0",
"version": "0.6.0",
"license": "Apache-2.0",
"engines": {
"vscode": "^1.64.0"
Expand Down
8 changes: 7 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const markdownItAttrs = require('markdown-it-attrs');

let terminal: vscode.Terminal;
let panel: vscode.WebviewPanel;
let lastStep: string = 'intro';
let lastStep: string;

export function activate(context: vscode.ExtensionContext) {
vscode.commands.executeCommand('notifications.clearAll');
Expand Down Expand Up @@ -71,6 +71,8 @@ function reloadPage(command: any) {
}

function loadPage (target: Target) {
lastStep = target.step;

const file = vscode.Uri.file(path.join(getWorkingDir(), target.step + '.md'));

const md = new markdownIt({html: true})
Expand Down Expand Up @@ -113,6 +115,10 @@ function loadPage (target: Target) {
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="https://datastax-academy.github.io/katapod-shared-assets/css/katapod.css" />
<script src="https://datastax-academy.github.io/katapod-shared-assets/js/katapod.js"></script>
<link rel="stylesheet" type="text/css" href="https://datastax-academy.github.io/katapod-shared-assets/quiz/quiz.css" />
<link rel="stylesheet" type="text/css" href="https://datastax-academy.github.io/katapod-shared-assets/quiz/page.css" />
<script src="https://datastax-academy.github.io/katapod-shared-assets/quiz/quiz.js"></script>
<script src="https://datastax-academy.github.io/katapod-shared-assets/quiz/main.js"></script>
</head>
<body>`;
const post = `</body></html>`;
Expand Down

0 comments on commit 4e2521c

Please sign in to comment.