Skip to content

Commit 968459b

Browse files
committed
feat: hugo
1 parent 391402b commit 968459b

12 files changed

+6108
-1901
lines changed

README.html

+5,484-1,706
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+180-65
Large diffs are not rendered by default.

README.org

+180-9
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#+title: doom org style
55
#+subtitle: A vairty of template about org mode code which one referenced the doom doc style
66
#+author: vanniuner
7-
#+OPTIONS: prop:nil timestamp:nil \n:t ^:nil f:t toc:t author:t num:t H:2
7+
#+OPTIONS: prop:nil timestamp:nil \n:t ^:nil f:t toc:t author:nil num:t H:2
88
#+HTML_HEAD: <script src="http://code.jquery.com/jquery-2.0.0.min.js"></script>
99

1010
# #+HTML_HEAD: <script src="https://emacs-1308440781.cos.ap-chengdu.myqcloud.com/scroll.js"></script>
@@ -14,6 +14,7 @@
1414
#+LATEX_COMPILER: xelatex
1515
#+LATEX_CLASS: elegantpaper
1616
#+HTML_HEAD: <a href="https://github.com/vanniuner/doom-org-style" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#70B7FD; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>
17+
1718
#+begin_quote
1819
样式引用:https://docs.doomemacs.org/latest/#/modules
1920
#+end_quote
@@ -170,12 +171,6 @@ The expression which at the right of equation , @# stands for the row number of
170171
#+end_src
171172
~C-c~ ~C-c~ to execute it
172173
* LaTex 公式
173-
#+begin_src txt
174-
$\mbox{需求的价格弹性系数} = \frac{\mbox{需求的变动率}}{\mbox{价格的变动率}}$
175-
#+end_src
176-
177-
$$\mbox{需求的价格弹性系数} = \frac{\mbox{需求的变动率}}{\mbox{价格的变动率}}$$
178-
179174
#+CAPTION: laTex 公式
180175
$$\begin{aligned}
181176
\cos 3\theta & = \cos (2 \theta + \theta) \\
@@ -544,7 +539,6 @@ use ~org-plot/gnuplot~ for generate.
544539
** WHAT IS CONNECTOR
545540
#+begin_src ds2 :file test.svg
546541
direction: right
547-
style.fill : transparent
548542
platform : BPM
549543

550544
platform -> RocketMq: invoke {
@@ -590,7 +584,6 @@ DataBase -> System : belong{
590584
#+end_src
591585

592586
#+RESULTS:
593-
[[file:test.svg]]
594587
** d2 workflow
595588
#+begin_src d2 :file devflow.svg
596589
direction: right
@@ -710,6 +703,172 @@ DataBase -> System : belong{
710703
style.stroke-width: 3
711704
}
712705
#+end_src
706+
** d2 6.2
707+
#+begin_src d2 :file demov6.2.png
708+
grid-rows: 4
709+
grid-columns: 5
710+
horizontal-gap: 20
711+
vertical-gap: 5
712+
713+
*.class: [text; blue]
714+
715+
0,0: {
716+
label: "npm i -g\n@forge/cli"
717+
style: {
718+
fill: "#30304c"
719+
stroke: transparent
720+
font-color: white
721+
font: mono
722+
font-size: 10
723+
bold: false
724+
}
725+
}
726+
0,1: {
727+
label: "Set up an\nAtlassian site"
728+
class: [text; gray]
729+
}
730+
0,2.class: empty
731+
0,3: {
732+
label: "View the hello\nworld app"
733+
class: [text; gray]
734+
}
735+
0,4: forge\ntunnel
736+
737+
1*.class: note
738+
1*.label: ""
739+
1,0
740+
1,1
741+
1,2
742+
1,3
743+
1,4
744+
745+
2,0: forge\nlogin
746+
2,1: forge\ncreate
747+
2,2: forge\ndeploy
748+
2,3: forge\ninstall
749+
2,4: {
750+
shape: diamond
751+
label: "Hot reload\nchanges?"
752+
class: [text; gray]
753+
}
754+
755+
3*.class: note
756+
3,0: Step 1
757+
3,1: Step 2
758+
3,2: Step 3
759+
3,3: Step 4
760+
3,4: ""
761+
762+
4,0: "" {
763+
grid-rows: 3
764+
grid-columns: 1
765+
grid-gap: 0
766+
767+
class: []
768+
769+
style: {
770+
fill: transparent
771+
stroke: transparent
772+
}
773+
774+
*.style: {
775+
fill: transparent
776+
stroke: transparent
777+
font-color: "#30304c"
778+
font-size: 10
779+
bold: false
780+
}
781+
*.label.near: center-left
782+
*.height: 20
783+
a: ⬤ Forge CLI {
784+
style.font-color: "#0033cc"
785+
}
786+
787+
b: ⬤ Required {
788+
style.font-color: "#30304c"
789+
}
790+
c: ⬤ Optional {
791+
style.font-color: "#cecece"
792+
}
793+
}
794+
4,1.class: empty
795+
4,2.class: empty
796+
4,3.class: empty
797+
4,4: forge\ndeploy
798+
799+
0,0 -> 2,0 -> 2,1 -> 2,2 -> 2,3 -> 2,4: {
800+
class: arrow
801+
}
802+
2,1 -> 0,1: {
803+
class: arrow
804+
style.stroke: "#cecece"
805+
}
806+
2,3 -> 0,3: {
807+
class: arrow
808+
style.stroke: "#cecece"
809+
}
810+
2,4 -> 0,4: Yes {
811+
class: arrow
812+
style.font-size: 10
813+
}
814+
2,4 -> 4,4: No {
815+
class: arrow
816+
style.font-size: 10
817+
}
818+
819+
classes: {
820+
text.style: {
821+
stroke: transparent
822+
font-color: white
823+
font: mono
824+
font-size: 10
825+
bold: false
826+
}
827+
text: {
828+
width: 100
829+
height: 60
830+
}
831+
blue.style: {
832+
fill: "#0033cc"
833+
stroke: "#0033cc"
834+
border-radius: 10
835+
}
836+
gray.style: {
837+
fill: "#cecece"
838+
stroke: "#cecece"
839+
border-radius: 10
840+
}
841+
note: {
842+
height: 30
843+
label.near: top-center
844+
style: {
845+
font-size: 10
846+
bold: false
847+
fill: transparent
848+
stroke: transparent
849+
}
850+
}
851+
empty: {
852+
label: ""
853+
width: 50
854+
height: 50
855+
style: {
856+
fill: transparent
857+
stroke: transparent
858+
}
859+
}
860+
arrow: {
861+
target-arrowhead.shape: arrow
862+
style: {
863+
stroke: black
864+
stroke-width: 2
865+
}
866+
}
867+
}
868+
#+end_src
869+
#+RESULTS:
870+
[[file:demov6.2.png]]
871+
713872
* org 转 Word
714873
#+begin_src shell
715874
pandoc -o ~/Desktop/out.docx ~/.doom.d/README.org
@@ -725,3 +884,15 @@ Use unicode character could express of what you think more directly,cause an ima
725884
Here are some unicode website of listing those character,✌
726885
- https://unicode.yunser.com/common
727886
- https://cn.piliapp.com/symbol/
887+
888+
* a
889+
- [X] Add list feature
890+
- [ ] copy to clipboard
891+
#+CAPTION[Short caption]: square
892+
|---+-----+-----+-----+-----------+------------|
893+
| N | N^2 | N^3 | N^4 | sqrt(n) | sqrt[4](N) |
894+
|---+-----+-----+-----+-----------+------------|
895+
| 1 | 1 | 1 | 1 | 1 | 1 |
896+
| 2 | 4 | 8 | 16 | 1.4142136 | 1.1892071 |
897+
| 3 | 9 | 27 | 81 | 1.7320508 | 1.3160740 |
898+
|---+-----+-----+-----+-----------+------------|

base.css

+24-10
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ body {
66
height: 100%;
77
margin: 0;
88
background-size: 5px 5px;
9-
}
10-
9+
}
10+
body::-webkit-scrollbar {
11+
width: 0; /* 隐藏滚动条 */
12+
}
1113
.toggletheme {
1214
z-index: 999;
1315
position: fixed;
@@ -154,6 +156,9 @@ body {
154156

155157

156158
@media screen and (max-width: 1335px) {
159+
#preamble{
160+
transform: translateX(-240px);
161+
}
157162

158163
.btncheck {
159164
display: none;
@@ -182,7 +187,7 @@ body {
182187
display: none;
183188
}
184189
.previousButton {
185-
width: 100px;
190+
width: 30px;
186191
height: 100vh;
187192
position: fixed;
188193
left: 0px;
@@ -195,7 +200,7 @@ body {
195200
font-size: 2em;
196201
}
197202
.nextButton {
198-
width: 100px;
203+
width: 30px;
199204
height: 100vh;
200205
position: fixed;
201206
right: 0px;
@@ -212,23 +217,26 @@ body {
212217

213218

214219
@media screen and (min-width: 1335px) {
215-
216220
.hidden-content {
217-
transform: translateX(-240px);
221+
transform: translateX(240px);
222+
}
223+
224+
#preamble {
225+
transform: translateX(0px);
218226
}
219227

220228
#content {
221229
max-width: 60em;
222-
padding-left: 240px;
230+
/* padding-left: 160px; */
223231
}
224232

225233
.light h1.title ,.dark h1.title{
226234
text-align: left;
227-
margin: 1em 0 0 0px;
235+
margin: 0.5em 0 0 0px;
228236
}
229237

230238
.previousButton {
231-
width: 100px;
239+
width: 30px;
232240
height: 100vh;
233241
position: fixed;
234242
left: 240px;
@@ -241,7 +249,7 @@ body {
241249
font-size: 2em;
242250
}
243251
.nextButton {
244-
width: 100px;
252+
width: 30px;
245253
height: 100vh;
246254
position: fixed;
247255
right: 0px;
@@ -263,3 +271,9 @@ body {
263271
-ms-user-select: none; /* Internet Explorer */
264272
user-select: none; /* Standard syntax */
265273
}
274+
.figure p {
275+
text-align: left;
276+
}
277+
#preamble {
278+
display: none !important;
279+
}

demov6.2.png

76.7 KB
Loading

demov6.2.svg

+127
Loading

image/plant-uml-order.svg

+2-2
Loading

image/plantuml-c4.svg

+2-2
Loading

image/plantuml-swiming.svg

+2-2
Loading

0 commit comments

Comments
 (0)