From 253ff4900c5c0362f798bd75598befde7f345ec3 Mon Sep 17 00:00:00 2001 From: lixxbox Date: Mon, 13 Dec 2021 11:16:03 +0100 Subject: [PATCH] docs: add youtube videos for themes & thumbnails --- docs/_sass/color_schemes/mainsail.scss | 15 ++++++++++++++ docs/quicktips/thumbnails.md | 27 +++++++++++++++++++++----- docs/themes/index.md | 6 +++++- 3 files changed, 42 insertions(+), 6 deletions(-) diff --git a/docs/_sass/color_schemes/mainsail.scss b/docs/_sass/color_schemes/mainsail.scss index 102b70b6..cd3c1c79 100644 --- a/docs/_sass/color_schemes/mainsail.scss +++ b/docs/_sass/color_schemes/mainsail.scss @@ -49,6 +49,21 @@ $btn-primary-color: $red-300; content: url("/assets/img/alert.svg"); } +.youtube-container { + position: relative; + width: 100%; + height: 0; + padding-bottom: 56.25%; /* 9/16 */ +} + +.youtube-container > iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} + .key { padding: 0px 5px; border-radius: 3px; diff --git a/docs/quicktips/thumbnails.md b/docs/quicktips/thumbnails.md index 6f15a0a2..c9142e25 100644 --- a/docs/quicktips/thumbnails.md +++ b/docs/quicktips/thumbnails.md @@ -12,20 +12,37 @@ description: >- ![preview](../assets/img/additional/large-preview.png) -### PrusaSlicer (since v2.3.0) +
+ + Slicers + + {: .text-delta } +1. TOC +{:toc} +
+ +## PrusaSlicer (since v2.3.0) In "Expert" mode PrusaSlicer has an option in the "Printer Settings" tab to activate previews. Under `General / Firmware`, enter `32x32,400x300` as "G-code thumbnails". ![PrusaSlicer](../assets/img/additional/PrusaSlicer2.3.0-thumbnails.png) -### SuperSlicer (since v2.2.54.0) +
+ +
+ +## SuperSlicer (since v2.2.54.0) In "Expert" mode SuperSlicer has some very convenient options in the "Printer Settings" tab to activate and customize the previews. ![SuperSlicer](../assets/img/additional/SuperSlicer-thumbnails.png) -### PrusaSlicer/SuperSlicer +
+ +
+ +## PrusaSlicer/SuperSlicer To enable thumbnails, click on `Help > Show Configuration Folder` and navigate to your printer profiles inside the `printer` folder. Open your printer profile in a text editor and find `thumbnails =` and add the resolutions `32x32,400x300`. Save the file and restart your Slicer. @@ -34,14 +51,14 @@ Open your printer profile in a text editor and find `thumbnails =` and add the r From now on the gcode files contain thumbnails displayed by mainsail. -### Cura +## Cura The Cura plugin "Cura2Moonraker" is required for this. You can find this plugin and a install guide here: [https://github.com/emtrax-ltd/Cura2MoonrakerPlugin](https://github.com/emtrax-ltd/Cura2MoonrakerPlugin) ![Cura](../assets/img/additional/Cura-thumbnails.png) -### ideaMaker (since v4.2.1) +## ideaMaker (since v4.2.1) To enable thumbnails, open the `Advanced` tab in the `printer settings`, enable the `GCode Thumbnails for Octoprint and Mainsail` option and enter your prefered *square format* image size in the `Resolution` fields (e.g. `400 X 400`). diff --git a/docs/themes/index.md b/docs/themes/index.md index 2fa50f51..aa9ed664 100644 --- a/docs/themes/index.md +++ b/docs/themes/index.md @@ -11,4 +11,8 @@ description: >- # {{ page.title }} {{ page.description }} -Start with [prepare](/theming/prepare) to create a basic structure for your own theme, or take a look in [themes](/theming/themes) to see if there are already suitable themes from the Mainsail community. \ No newline at end of file +Start with [prepare](/theming/prepare) to create a basic structure for your own theme, or take a look in [themes](/theming/themes) to see if there are already suitable themes from the Mainsail community. + +
+ +
\ No newline at end of file