Skip to content
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
4 changes: 2 additions & 2 deletions docs/userGuide/gettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Usage: ...
++**2. Initialize a new Project (or Start with an existing Project)**++

<tabs>
  <tab header="Initializing a new project">
<tab header="Initializing a new project">

Navigate into an empty directory and run the following command to initialize a skeletal MarkBind site in that directory. It will create several new files in the directory e.g., `index.md`, `site.json`.

Expand All @@ -62,7 +62,7 @@ The `init` command populates the project with the [default project template](htt
</include>

</tab>
  <tab header="Starting with an existing project">
<tab header="Starting with an existing project">

Navigate to the project {{ tooltip_root_directory }}.

Expand Down
5 changes: 3 additions & 2 deletions docs/userGuide/siteJsonFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Here is a typical `site.json` file:
"layout": "subtopic"
}
],
"pagesExclude": ["subsite/**/*.md"],
"pagesExclude": ["subsite/**/*.md", "node_modules/*"],
"externalScripts": [
"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"
],
Expand All @@ -59,7 +59,8 @@ Here is a typical `site.json` file:
"_site/*",
"*.json",
"*.md",
".git/*"
".git/*",
"node_modules/*"
],
"plugins" : [
"filterTags"
Expand Down
4 changes: 3 additions & 1 deletion packages/core/template/default/site.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"site.json",
"*.md",
"*.njk",
".git/*"
".git/*",
"node_modules/*"
],
"pagesExclude": ["node_modules/*"],
"pages": [
{
"src": "index.md",
Expand Down
46 changes: 24 additions & 22 deletions packages/core/template/minimal/site.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
{
"baseUrl": "",
"titlePrefix": "",
"ignore": [
"_markbind/layouts/*",
"_markbind/logs/*",
"_site/*",
"site.json",
"*.md",
"*.njk",
".git/*"
],
"pages": [
{
"src": "index.md",
"title": "Hello World"
},
{
"glob": ["**/index.md", "**/*.md"]
}
],
"deploy": {
"message": "Site Update."
"baseUrl": "",
"titlePrefix": "",
"ignore": [
"_markbind/layouts/*",
"_markbind/logs/*",
"_site/*",
"site.json",
"*.md",
"*.njk",
".git/*",
"node_modules/*"
],
"pagesExclude": ["node_modules/*"],
"pages": [
{
"src": "index.md",
"title": "Hello World"
},
{
"glob": ["**/index.md", "**/*.md"]
}
],
"deploy": {
"message": "Site Update."
}
}
4 changes: 3 additions & 1 deletion packages/core/test/unit/utils/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ module.exports.SITE_JSON_DEFAULT = '{\n'
+ ' "site.json",\n'
+ ' "*.md",\n'
+ ' "*.njk",\n'
+ ' ".git/*"\n'
+ ' ".git/*",\n'
+ ' "node_modules/*"\n'
+ ' ],\n'
+ ' "pagesExclude": ["node_modules/*"],\n'
+ ' "pages": [\n'
+ ' {\n'
+ ' "src": "index.md",\n'
Expand Down