Skip to content

Commit 6949ae2

Browse files
committedJul 16, 2023
fix page to add search and docs
1 parent b370ae5 commit 6949ae2

File tree

15 files changed

+24
-9
lines changed

15 files changed

+24
-9
lines changed
 

‎.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "assets/lib"]
22
path = assets/lib
3-
url = https://github.com/cotes2020/chirpy-static-assets.git
3+
url = git@github.com:cotes2020/chirpy-static-assets.git

‎_docs/schema/basics.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ There are currently six drafts of the JSON Schema specification that have known
2424
- Draft 2019-09
2525
- Draft 2020-12
2626

27-
*JsonSchema.Net* supports draft 6 and later.
27+
The JSON Schema team recommends using draft 7 or later. *JsonSchema.Net* supports draft 6 and later.
2828

29-
The next version, which will be supported by v4.0.0 and later of this library, is currently in development and will start a new era for the project which includes various backward- and forward-compatibility guarantees. Have a read of the various discussions happening in the [JSON Schema GitHub org](https://github.com/json-schema-org) for more information.
29+
> The next version of JSON Schema, which is supported by v4.0.0 and later of this library, is currently in development and will start a new era for the project which includes various backward- and forward-compatibility guarantees. Have a read of the various discussions happening in the [JSON Schema GitHub org](https://github.com/json-schema-org) for more information.
30+
{: .prompt-tip }
3031

3132
### Meta-schemas {#schema-metaschemas}
3233

‎_includes/topbar.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
{% endif %}
5151
</div>
5252

53-
{% if false %}
53+
{% if true %}
5454
<i id="search-trigger" class="fas fa-search fa-fw"></i>
5555
<span id="search-wrapper" class="align-items-center">
5656
<i class="fas fa-search fa-fw"></i>

‎_javascript/modules/components/toc.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export function toc() {
2+
console.log("initializing toc");
23
if (document.querySelector('#core-wrapper h2,#core-wrapper h3')) {
34
// see: https://github.com/tscanlin/tocbot#usage
45
tocbot.init({

‎_layouts/page.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h1 class="dynamic-title">
4040
<div id="panel-wrapper" class="col-xl-3 pl-2 text-muted">
4141
<div class="access">
4242
{% include update-list.html lang=lang %}
43-
<!-- TODO: get toc working -->
43+
{% include toc.html lang=lang %}
4444
</div>
4545

4646
{% for _include in layout.panel_includes %}
Loading
166 KB
Loading

‎assets/js/data/search.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ swcache: true
44
---
55

66
[
7-
{% for post in site.posts %}
7+
{% for post in site.docs %}
8+
{% if post.title != '__title' and post.title != '__close' %}
89
{
910
"title": {{ post.title | jsonify }},
1011
"url": {{ post.url | relative_url | jsonify }},
@@ -16,5 +17,6 @@ swcache: true
1617
"snippet": {{ _content | truncate: 200 | jsonify }},
1718
"content": {{ _content | jsonify }}
1819
}{% unless forloop.last %},{% endunless %}
20+
{% endif %}
1921
{% endfor %}
2022
]

‎assets/lib

Submodule lib added at 557de30

‎index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ In the sidebar to the left, you'll find
1212
- Release notes
1313
- API reference
1414

15-
If you have question about this site or an idea for improving it, please [open an issue](https://github.com/gregsdennis/json-everything/issues/new?assignees=&labels=documentation&projects=&template=Documentation.md) in the main repository.
15+
If you have question about this site or an idea for improving it, please [open an issue](https://github.com/gregsdennis/json-everything/issues/new?assignees=&labels=documentation&projects=&template=Documentation.yml) in the main repository.

‎init.bat

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
npm i && npm run build
2+
3+
bundle

‎init.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
npm i && npm run build
4+
5+
bundle

‎rollup.config.js

-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ function build(filename) {
3838

3939
export default [
4040
build('commons'),
41-
build('categories'),
4241
build('page'),
43-
build('post'),
4442
build('misc')
4543
];

‎run.bat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bundle exec jekyll serve

‎run.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
bundle exec jekyll serve

0 commit comments

Comments
 (0)
Please sign in to comment.