@compiiile/compiiile 2.11.1 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -183,6 +183,7 @@ Other frontmatter keys are handled:
|
|
|
183
183
|
- `textAlign`: possible values
|
|
184
184
|
are [CSS text-align values](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align) (`left`, `center`, ...). This
|
|
185
185
|
changes the default text alignment in slides. The default value is `center`.
|
|
186
|
+
- `ignore` : Boolean value (`true` or `false`) to ignore the current file and exclude it from Compiiile (the file is not ignored by default).
|
|
186
187
|
|
|
187
188
|
> :bulb: You can override slides theme by passing it to a `theme` query parameter in your slide url (for example `/s/slides?theme=light`). See the `theme` config parameter below for valid values.
|
|
188
189
|
|
|
@@ -71,7 +71,7 @@ export default class {
|
|
|
71
71
|
".vuepress",
|
|
72
72
|
".git",
|
|
73
73
|
"node_modules",
|
|
74
|
-
"compiiile",
|
|
74
|
+
".compiiile",
|
|
75
75
|
"bin",
|
|
76
76
|
".idea",
|
|
77
77
|
".DS_Store",
|
|
@@ -122,6 +122,14 @@ export default class {
|
|
|
122
122
|
|
|
123
123
|
const meta = renderedMarkdown.metadata.frontmatter
|
|
124
124
|
|
|
125
|
+
if(meta.ignore){
|
|
126
|
+
const fileIndex = fileArray.findIndex(f => f.uuid === fileListItem.uuid)
|
|
127
|
+
if(fileIndex > -1){
|
|
128
|
+
fileArray.splice(fileIndex, 1)
|
|
129
|
+
}
|
|
130
|
+
continue
|
|
131
|
+
}
|
|
132
|
+
|
|
125
133
|
let firstHeading = null
|
|
126
134
|
if (
|
|
127
135
|
JSON.parse(process.env.VITE_COMPIIILE_USE_AUTO_TITLES) &&
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compiiile/compiiile",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.12.0",
|
|
5
5
|
"description": "The most convenient way to render a folder containing markdown files. Previewing and searching markdown files has never been that easy.",
|
|
6
6
|
"author": "AlbanCrepel <alban.crepel@gmail.com>",
|
|
7
7
|
"license": "GPL-3.0-only",
|