You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A docsify.js plugin to embed selective areas from another markdown file.
3
+
A [docsify.js](https://github.com/docsifyjs/docsify) plugin to simplify the color selection for [docsify-themable](https://github.com/jhildenbiddle/docsify-themeable).
4
4
5
-
## Installation
5
+
## Installation and usage instructions
6
6
7
-
How to install this plugin.
7
+
> [!NOTE]
8
+
> Sorry for not providing a demo, but I thought this is a very self explanatory setup. But I am using this activly in [another projects](https://github.com/Karlo-Hosting/Docs/blob/a42df71978a439923162b411b2efb589df0a8e22/_css/colors-dark.css#L1).
9
+
10
+
How to install this plugin:
11
+
12
+
1. Make sure you have [docsify-themable](https://github.com/jhildenbiddle/docsify-themeable) installed.
13
+
2. Copy one of the stylesheet segments from below and copy it into the `head` section your `index.html` file. Make sure that is is after all other plugins and before your own modifications.
14
+
3. Copy the example-files from [the source directory](https://github.com/FlippedCodes/docsify-simple-themable/tree/main/src) into your projects `_css/` folder.
15
+
4. Rename them into `colors-dark.css` and `colors-light.css`
16
+
5. Change the colors in those files to your liking.
8
17
9
18
### Production
10
19
11
20
For production, please use the numbered version to prevent breaking changes in production.
> Sorry for not providing a demo, but I thought this is a very self explanatory setup. But I am using this activly in [another projects](https://github.com/FlippedCodes/Unofficial-Resonite-Docs/blob/c92cd4baf050c3316924b4af71ec59b9defaef66/gameplay/botCommands.md?plain=1#L78).
29
-
30
-
### Basic instructions
31
-
32
-
1. Surround the part you want *to embed* in the following comment:
33
-
34
-
```markdown
35
-
<!-- embed:start:exampleName -->
36
-
37
-
YOUR CONTENT HERE
38
-
39
-
<!-- embed:end:exampleName -->
40
-
```
41
-
42
-
> [!IMPORTANT]
43
-
> Make sure you respect the spaces between the comments and your content. It can mess with the html (specifically tables), if they are left out.
- Because the selector is what decides the beginning and the end, you can nest and overlay the embed selections, however you like it.
65
-
66
-
```markdown
67
-
<!-- embed:start:expl3 -->
68
-
<!-- embed:start:expl1 -->
69
-
70
-
Very original stuff.
71
-
72
-
<!-- embed:start:expl2 -->
73
-
74
-
Oh, So much content
75
-
76
-
<!-- embed:end:expl1 -->
77
-
78
-
uhm.. hows your day?
38
+
## Tips
79
39
80
-
<!-- embed:end:expl2 -->
81
-
<!-- embed:end:expl3 -->
82
-
```
40
+
- This project is inspired by the color pallet naming scheme of [daisyUI](https://daisyui.com/): You can use their [theme generator](https://daisyui.com/theme-generator/) to select colors.
41
+
- If you think something on your docs should have a different color. You are more then welcome to copy the `src/main.css` into your `_css` folder as well. Just make sure you don't forget to adjust hte link in in the `head` section of your `index.html`!
42
+
- If you already have a css files, you are free to change the folder location in the stylesheet references in `index.html`.
83
43
84
44
## Contributing
85
45
@@ -89,15 +49,12 @@ I'm always happy, if someone has improvements to this little plugin. If you want
89
49
90
50
Nothing much here, but I'm planning to add the following features at some point:
91
51
92
-
-[ ] Support for [docsify-mustache](https://docsify-mustache.github.io) so Docsify can have proper templating.
93
-
-[ ] Being able to use header as a selector and not use comments to mark the start and end.
94
-
-[ ] Offset header levels to either fit the current layout, or being able to select it.
95
-
-[ ] Rewrite links to point at their embeded version (eg. Youtube)
52
+
-[ ] Remove requirement for docsify-themable.
96
53
97
54
## License
98
55
99
56
This repo is using the [MIT license](LICENSE).
100
57
101
58
## Credit
102
59
103
-
Thanks to the [docsify.js](https://docsify.js.org/#/) team to make writing plugins so simple. I usually don't front end, but this was a breeze to get working.
60
+
Thanks to the [docsify.js](https://docsify.js.org/#/) team to make changing CSS so simple. I usually don't front end, but this was a breeze to get working.
0 commit comments