Skip to content

Commit 5c3e188

Browse files
author
Falaleev Maxim
committed
rebuild static, improve templates
1 parent ea70e87 commit 5c3e188

26 files changed

Lines changed: 232 additions & 121 deletions

File tree

config.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ title = "Mindy Documentation"
55
theme = "hugo-simple-doc"
66
#themesdir = "../.."
77
pygmentsCodeFences = true
8-
pygmentsStyle = "monokailight"
9-
disableLiveReload = true
8+
pygmentsUseClasses=true
109
defaultContentLanguage = "en"
1110
defaultContentLanguageInSubdir= false
1211
enableMissingTranslationPlaceholders = false
@@ -18,7 +17,7 @@ enableMissingTranslationPlaceholders = false
1817
# languageName = "English"
1918

2019
[params]
21-
editURL = "https://github.com/vjeantet/hugo-theme-docdock/edit/master/exampleSite/content/"
20+
editURL = "https://github.com/MindyPHP/doc.mindy-cms.com/edit/master/content/"
2221
ordersectionsby = "weight"
2322
enableGitInfo = true
2423

content/content-organisation/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ With docdock, **Each content page composes the menu**, they shape the structure
1010

1111
To link pages to each other, place them in a folders hierarchy
1212

13+
```php
14+
<?php echo 'hello world';
1315
```
16+
17+
```bash
1418
content
1519
├── level-one
1620
│ ├── level-two

content/getting-start/_index.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
+++
22
title = "Начало"
3-
description = ""
4-
weight = 1
3+
description = ""
4+
weight = 1
5+
tags = ["tag1","tag2"]
56
+++
67

7-
## 333
8-
98
Download [Hugo binary](https://gohugo.io/overview/installing/) for your OS (Windows, Linux, Mac) : it’s that simple
109

11-
{{%children style="h2" description="true"%}}
10+
{{% children style="h2" description="true" %}}

content/getting-start/configuration.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ description = ""
44
weight = 2
55
+++
66

7-
# Configuration
8-
97
When building the website, you can set a theme by using `--theme` option. We suggest you to edit your configuration file and set the theme by default. Example with `config.toml` format.
108
<!--more-->
119

themes/hugo-simple-doc/assets/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"purgecss-from-html": "^1.0.0",
3434
"sass-loader": "^6.0.6",
3535
"socicon": "^3.0.5",
36-
"turbolinks": "^5.1.1",
3736
"uglifyjs-webpack-plugin": "^1.1.6",
3837
"webpack": "^3.10.0",
3938
"webpack-merge": "^4.1.1"
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/* Background */ .chroma { color: #f8f8f2; background-color: #272822 }
2+
/* Error */ .chroma .err { color: #960050; background-color: #1e0010 }
3+
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
4+
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: 100%; overflow: auto; display: block; }
5+
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc }
6+
/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; display: block; }
7+
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
8+
/* Keyword */ .chroma .k { color: #66d9ef }
9+
/* KeywordConstant */ .chroma .kc { color: #66d9ef }
10+
/* KeywordDeclaration */ .chroma .kd { color: #66d9ef }
11+
/* KeywordNamespace */ .chroma .kn { color: #f92672 }
12+
/* KeywordPseudo */ .chroma .kp { color: #66d9ef }
13+
/* KeywordReserved */ .chroma .kr { color: #66d9ef }
14+
/* KeywordType */ .chroma .kt { color: #66d9ef }
15+
/* NameAttribute */ .chroma .na { color: #a6e22e }
16+
/* NameClass */ .chroma .nc { color: #a6e22e }
17+
/* NameConstant */ .chroma .no { color: #66d9ef }
18+
/* NameDecorator */ .chroma .nd { color: #a6e22e }
19+
/* NameException */ .chroma .ne { color: #a6e22e }
20+
/* NameFunction */ .chroma .nf { color: #a6e22e }
21+
/* NameOther */ .chroma .nx { color: #a6e22e }
22+
/* NameTag */ .chroma .nt { color: #f92672 }
23+
/* Literal */ .chroma .l { color: #ae81ff }
24+
/* LiteralDate */ .chroma .ld { color: #e6db74 }
25+
/* LiteralString */ .chroma .s { color: #e6db74 }
26+
/* LiteralStringAffix */ .chroma .sa { color: #e6db74 }
27+
/* LiteralStringBacktick */ .chroma .sb { color: #e6db74 }
28+
/* LiteralStringChar */ .chroma .sc { color: #e6db74 }
29+
/* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 }
30+
/* LiteralStringDoc */ .chroma .sd { color: #e6db74 }
31+
/* LiteralStringDouble */ .chroma .s2 { color: #e6db74 }
32+
/* LiteralStringEscape */ .chroma .se { color: #ae81ff }
33+
/* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 }
34+
/* LiteralStringInterpol */ .chroma .si { color: #e6db74 }
35+
/* LiteralStringOther */ .chroma .sx { color: #e6db74 }
36+
/* LiteralStringRegex */ .chroma .sr { color: #e6db74 }
37+
/* LiteralStringSingle */ .chroma .s1 { color: #e6db74 }
38+
/* LiteralStringSymbol */ .chroma .ss { color: #e6db74 }
39+
/* LiteralNumber */ .chroma .m { color: #ae81ff }
40+
/* LiteralNumberBin */ .chroma .mb { color: #ae81ff }
41+
/* LiteralNumberFloat */ .chroma .mf { color: #ae81ff }
42+
/* LiteralNumberHex */ .chroma .mh { color: #ae81ff }
43+
/* LiteralNumberInteger */ .chroma .mi { color: #ae81ff }
44+
/* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff }
45+
/* LiteralNumberOct */ .chroma .mo { color: #ae81ff }
46+
/* Operator */ .chroma .o { color: #f92672 }
47+
/* OperatorWord */ .chroma .ow { color: #f92672 }
48+
/* Comment */ .chroma .c { color: #75715e }
49+
/* CommentHashbang */ .chroma .ch { color: #75715e }
50+
/* CommentMultiline */ .chroma .cm { color: #75715e }
51+
/* CommentSingle */ .chroma .c1 { color: #75715e }
52+
/* CommentSpecial */ .chroma .cs { color: #75715e }
53+
/* CommentPreproc */ .chroma .cp { color: #75715e }
54+
/* CommentPreprocFile */ .chroma .cpf { color: #75715e }
55+
/* GenericDeleted */ .chroma .gd { color: #f92672 }
56+
/* GenericEmph */ .chroma .ge { font-style: italic }
57+
/* GenericInserted */ .chroma .gi { color: #a6e22e }
58+
/* GenericStrong */ .chroma .gs { font-weight: bold }
59+
/* GenericSubheading */ .chroma .gu { color: #75715e }
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1+
::selection {
2+
background: flexy-color();
3+
color: #fff;
4+
}
5+
16
* {
7+
box-sizing: border-box;
28
outline: none;
39
}
410

511
a {
612
color: flexy-color();
713
}
14+
15+
@include flexy-heading {
16+
margin-top: 2rem;
17+
margin-bottom: .5rem;
18+
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
$flexy-grid-wrapper-max-width: 978px;
22
$flexy-body-font-size: 15px;
3-
$flexy-body-line-height: 1.3;
3+
$flexy-body-line-height: 24px;
44
$flexy-theme-colors: (
55
default: #3899ec,
6+
text: #32536a,
67
dark: #353535
78
);
89
$flexy-block-divider-default-color: darken(#f0f4f7, 10%);

themes/hugo-simple-doc/assets/src/css/app.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66
@import '~flexy-framework/flexy/theme/default';
77

88
@import 'global';
9+
@import 'code';
910
@import 'block/site';
1011
@import 'block/body';
1112
@import 'block/header';
1213
@import 'block/content';
1314
@import 'block/header-menu';
1415
@import 'block/menu';
16+
@import 'block/tag';
1517
@import 'block/logo';
18+
@import 'block/children';
1619
@import 'block/nav';
1720
@import 'block/sidebar';
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.b-children {
2+
margin: 2em 0;
3+
4+
&__link {
5+
text-decoration: none;
6+
}
7+
8+
&__child {
9+
&:not(:last-of-type) {
10+
margin-bottom: 2em;
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)