Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dependencies vuepress theme v64 #304

Merged
merged 5 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
},
"devDependencies": {
"@vuepress/bundler-vite": "2.0.0-rc.19",
"@vuepress/plugin-markdown-image": "2.0.0-rc.66",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these suposed to be removed or was there a change we expected to see in this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell, the theme has bundled it internally and no longer needs you to install these plugins yourself. You can see that the functionality still works due to graphics still being displayed properly:
image

image
Here is the package-lock file which shows that the plugin is still installed even after I removed it from our package.json file.

"@vuepress/plugin-markdown-tab": "2.0.0-rc.66",
"cypress": "^13.16.1",
"cypress-each": "^1.14.0",
"flowchart.ts": "^3.0.1",
Expand Down
95 changes: 36 additions & 59 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,42 @@ export default hopeTheme({
},
},

markdown: {
align: true,
attrs: true,
codeTabs: true,
component: true,
demo: true,
figure: true,
flowchart: true,
gfm: true,
imgLazyload: true,
imgSize: true,
include: true,
mark: true,
mermaid: true,
playground: {
presets: ["ts", "vue"],
},
stylize: [
{
matcher: "Recommended",
replacer: ({ tag }) => {
if (tag === "em")
return {
tag: "Badge",
attrs: { type: "tip" },
content: "Recommended",
};
},
},
],
sub: true,
sup: true,
tabs: true,
vPre: true,
},

metaLocales: {
editLink: "Edit this page on GitHub",
},
Expand All @@ -44,65 +80,6 @@ export default hopeTheme({
components: ["Badge", "VPCard"],
},

markdownImage: {
figure: true,
imgLazyload: true,
imgSize: true,
},

markdownTab: {
codeTabs: true,
tabs: true,
},

// All features are enabled for demo, only preserve features you need here
mdEnhance: {
align: true,
attrs: true,
// install chart.js before enabling it
// chart: true,
component: true,
demo: true,
// install echarts before enabling it
// echarts: true,
// install flowchart.ts before enabling it
flowchart: true,
gfm: true,
include: true,
// install katex before enabling it
// katex: true,
// install mathjax-full before enabling it
// mathjax: true,
mark: true,
mermaid: true,
// plantuml: true,
playground: {
presets: ["ts", "vue"],
},
// install sandpack-vue3 before enabling it
// sandpack: true,
// spoiler: true,
stylize: [
{
matcher: "Recommended",
replacer: ({ tag }) => {
if (tag === "em")
return {
tag: "Badge",
attrs: { type: "tip" },
content: "Recommended",
};
},
},
],
sub: true,
sup: true,
// tasklist: true,
vPre: true,
// install @vue/repl before enabling it
// vuePlayground: true,
},

// install reveal.js before enabling it
// revealjs: {
// plugins: ["highlight", "math", "search", "notes", "zoom"],
Expand Down
2 changes: 1 addition & 1 deletion src/courses/beginner/11.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ We *really* do not want to stuck with writing all of these tags by hand. Instead
First, let's discuss where all of that metadata comes from in the first place -- the baseline security guidance that we are automating using InSpec. We'll crack open a STIG XCCDF XML file to show you where the control metadata is sourced from.

::: note "XCCDF XML" file?! That's a lot of letters!
Yes, it is. Welcome to the wonderful world of government standard format names. See our glossary for more information on [XCCDF](../profile-dev-test/29.md).
Yes, it is. Welcome to the wonderful world of government standard format names. See our glossary for more information on [XCCDF](../profile-dev-test/26.md).
:::

Download the latest STIG Viewer located here [STIG Viewer](https://public.cyber.mil/stigs/srg-stig-tools/).
Expand Down
2 changes: 1 addition & 1 deletion src/courses/delta/02.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ This command is similar to the Chef InSpec [Initialize a new profile](../beginne

## 2.2 Glossary of Terms

For definitions of terms used within the Delta Process, refer to [Terms & Definitions](../profile-dev-test/27.md#terms--definitions).
For definitions of terms used within the Delta Process, refer to [Terms & Definitions](../profile-dev-test/26.md).
Loading