Skip to content

Commit

Permalink
Variety fixes and improvements (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
HumbleDeer authored Sep 13, 2023
1 parent 5956e2f commit 043509f
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 16 deletions.
4 changes: 2 additions & 2 deletions docs/_sass/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ img {
max-width: 100%;
height: auto;
display: block;
margin-left: auto;
margin-right: auto;
//margin-left: auto;
//margin-right: auto;
}

hr {
Expand Down
25 changes: 25 additions & 0 deletions docs/_sass/custom/custom.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.btn-fs-6{
font-size: 24px !important;
line-height: 1.25;
}

.btn.doc-link{
font-size: 24px !important;
line-height: 1.25;
margin: inherit 0.3em;
padding: 0.5em 1.2em;
}

.btn.doc-link::after{
content: "\F231 "; //Arrow icon
font-family: "bootstrap-icons";
line-height: 1;
vertical-align: text-bottom;
}

.btn.download::before{
content: "\F294 "; //Download icon
font-family: "bootstrap-icons";
line-height: 1;
vertical-align: text-bottom;
}
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 74 additions & 0 deletions docs/assets/js/zzzz-search-data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
permalink: /assets/js/search-data.json
---
{
{%- assign i = 0 -%}
{%- assign pages_array = "" | split: "" -%}
{%- assign pages_array = pages_array | push: site.html_pages -%}
{%- if site.just_the_docs.collections -%}
{%- for collection_entry in site.just_the_docs.collections -%}
{%- assign collection_key = collection_entry[0] -%}
{%- assign collection_value = collection_entry[1] -%}
{%- assign collection = site[collection_key] -%}
{%- if collection_value.search_exclude != true -%}
{%- assign pages_array = pages_array | push: collection -%}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- for pages in pages_array -%}
{%- for page in pages -%}
{%- if page.title and page.search_exclude != true -%}
{%- assign page_content = page.content -%}
{%- assign heading_level = site.search.heading_level | default: 2 -%}
{%- for j in (2..heading_level) -%}
{%- assign tag = '<h' | append: j -%}
{%- assign closing_tag = '</h' | append: j -%}
{%- assign page_content = page_content | replace: tag, '<h1' | replace: closing_tag, '</h1' -%}
{%- endfor -%}
{%- assign parts = page_content | split: '<h1' -%}
{%- assign title_found = false -%}
{%- for part in parts offset: 1 -%}
{%- assign titleAndContent = part | split: '</h1>' -%}
{%- assign title = titleAndContent[0] | replace_first: '>', '<h1>' | split: '<h1>' -%}
{%- assign title = title[1] | strip_html -%}
{%- assign content = titleAndContent[1] -%}
{%- assign url = page.url -%}
{%- if title == page.title and parts[0] == '' -%}
{%- assign title_found = true -%}
{%- else -%}
{%- assign id = titleAndContent[0] -%}
{%- assign id = id | split: 'id="' -%}
{%- if id.size == 2 -%}
{%- assign id = id[1] -%}
{%- assign id = id | split: '"' -%}
{%- assign id = id[0] -%}
{%- capture url -%}{{ url | append: '#' | append: id }}{%- endcapture -%}
{%- endif -%}
{%- endif -%}
{%- unless i == 0 -%},{%- endunless -%}
"{{ i }}": {
"doc": {{ page.title | jsonify }},
"title": {{ title | jsonify }},
"content": {{ content | replace: '</h', ' . </h' | replace: '<hr', ' . <hr' | replace: '</p', ' . </p' | replace: '<ul', ' . <ul' | replace: '</ul', ' . </ul' | replace: '<ol', ' . <ol' | replace: '</ol', ' . </ol' | replace: '</tr', ' . </tr' | replace: '<li', ' | <li' | replace: '</li', ' | </li' | replace: '</td', ' | </td' | replace: '<td', ' | <td' | replace: '</th', ' | </th' | replace: '<th', ' | <th' | strip_html | remove: 'Table of contents' | normalize_whitespace | replace: '. . .', '.' | replace: '. .', '.' | replace: '| |', '|' | append: ' ' | jsonify }},
"url": "{{ url | relative_url }}",
{% include lunr/custom-data.json page=page %}
"relUrl": "{{ url }}"
}
{%- assign i = i | plus: 1 -%}
{%- endfor -%}
{%- unless title_found -%}
{%- unless i == 0 -%},{%- endunless -%}
"{{ i }}": {
"doc": {{ page.title | jsonify }},
"title": {{ page.title | jsonify }},
"content": {{ parts[0] | replace: '</h', ' . </h' | replace: '<hr', ' . <hr' | replace: '</p', ' . </p' | replace: '<ul', ' . <ul' | replace: '</ul', ' . </ul' | replace: '<ol', ' . <ol' | replace: '</ol', ' . </ol' | replace: '</tr', ' . </tr' | replace: '<li', ' | <li' | replace: '</li', ' | </li' | replace: '</td', ' | </td' | replace: '<td', ' | <td' | replace: '</th', ' | </th' | replace: '<th', ' | <th' | strip_html | remove: 'Table of contents' | normalize_whitespace | replace: '. . .', '.' | replace: '. .', '.' | replace: '| |', '|' | append: ' ' | jsonify }},
"url": "{{ page.url | relative_url }}",
{% include lunr/custom-data.json page=page %}
"relUrl": "{{ page.url }}"
}
{%- assign i = i | plus: 1 -%}
{%- endunless -%}
{%- endif -%}
{%- endfor -%}
{%- endfor %}
}
6 changes: 1 addition & 5 deletions docs/general/misc-info/index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
---
layout: default
title: Miscellaneous info
has_toc: false
has_toc: true
nav_order: 1
has_children: true
permalink: /general/misc-info
---

# General & Miscellaneous info

* [Print Settings](/general/misc-info/print-settings)
* [Video tutorial](/general/misc-info/video-tutorial)
* [Blind joints](/general/misc-info/blind-joints)
2 changes: 1 addition & 1 deletion docs/general/misc-info/print-settings.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: default
title: Print Settings
title: Print settings
parent: Miscellaneous info
---

Expand Down
4 changes: 2 additions & 2 deletions docs/vz235_printed/frame.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permalink: /vz235_printed/frame

The frame is assembled through a combination of blind joints, corner brackets and blind corner brackets. The corner brackets are to help stiffen up the frame and are optional, though we highly recommend using them on every possible corner for best results.

For detailed informations on how to assemble blind joints visit this [page](../general/misc-info/blind-joints)
For detailed informations on how to assemble blind joints visit [this page](/general/misc-info/blind-joints)

## BOM

Expand Down Expand Up @@ -44,7 +44,7 @@ For detailed informations on how to assemble blind joints visit this [page](../g

> {: .highlight }
>
> To see the recommended print settings please refere [here](../general/misc-info/print-settings).
> To see the recommended print settings please refer to the [Print Settings guide](/general/misc-info/print-settings).
### Step 1

Expand Down
6 changes: 1 addition & 5 deletions docs/vz330_mellow/electronics/Printer Config.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ Put the serial here:

Next up we're gonna check if the motors move and if they move to the correct side.

<<<<<<< Updated upstream
We're gonna do this with the Stepper_buzz command `STEPPER_BUZZ stepper=stepper_`
=======
We're gonna do this with the Stepper_buzz command ```STEPPER_BUZZ stepper=stepper_```
>>>>>>> Stashed changes
We're gonna do this with the Stepper_buzz command `STEPPER_BUZZ stepper=stepper_<your stepper motor>`

![Stepper_Buzz](../../assets/images/manual/vz235_printed/electronics/Printer_config/Stepper_Buzz.PNG)

Expand Down
2 changes: 1 addition & 1 deletion docs/vz330_mellow/electronics/diagram.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ permalink: /vz330_mellow/electronics/diagram

# 6.5 Wiring Diagram

![Mainpage](https://raw.githubusercontent.com/VzBoT3D/VzBoT-Vz330/master/Wiring%20Diagram/VZBOT%20330%20WIRING%20DIAGRAM%20AWD%20WITH%20CPAP.png)
[![Wiring diagram vz330](https://raw.githubusercontent.com/VzBoT3D/VzBoT-Vz330/master/Wiring%20Diagram/VZBOT%20330%20WIRING%20DIAGRAM%20AWD%20WITH%20CPAP.png)](https://raw.githubusercontent.com/VzBoT3D/VzBoT-Vz330/master/Wiring%20Diagram/VZBOT%20330%20WIRING%20DIAGRAM%20AWD%20WITH%20CPAP.png)

0 comments on commit 043509f

Please sign in to comment.