Skip to content

Commit faa5ff8

Browse files
Adding Docs to docs build
1 parent 1cd43ea commit faa5ff8

File tree

4 files changed

+47
-3
lines changed

4 files changed

+47
-3
lines changed

.github/hookdoc-tmpl/static/styles-10up.css

+38-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,36 @@ h1.page-title {
1818
margin-top: .5em;
1919
}
2020

21+
nav {
22+
display: flex;
23+
flex-direction: column;
24+
}
25+
26+
nav * {
27+
order: 4;
28+
}
29+
30+
nav h2 {
31+
order: 1;
32+
}
33+
34+
nav h3:nth-of-type(3) {
35+
order: 2;
36+
visibility: hidden;
37+
position: relative;
38+
}
39+
40+
nav h3:nth-of-type(3):after {
41+
content: 'Docs';
42+
visibility: visible;
43+
position: absolute;
44+
left: 0;
45+
}
46+
47+
nav ul:nth-of-type(3) {
48+
order: 3;
49+
}
50+
2151
nav ul {
2252
font-size: 1.2rem;
2353
}
@@ -44,7 +74,7 @@ article h1 {
4474

4575
a {
4676
background-image: linear-gradient(transparent calc(100% - 7px), #f2dede 0),
47-
linear-gradient(transparent calc(100% - 7px), #cef8f7 0);
77+
linear-gradient(transparent calc(100% - 7px), #cef8f7 0);
4878
background-position: 0 0;
4979
background-repeat: no-repeat;
5080
background-size: 0 100%, 100% 100%;
@@ -75,6 +105,13 @@ a.banner img {
75105
max-width: 888px;
76106
}
77107

108+
article img {
109+
width: 100%;
110+
max-width: 888px;
111+
height: auto;
112+
margin: 15px 0;
113+
}
114+
78115
footer {
79116
text-align: center;
80117
font-size: .8em;
@@ -94,5 +131,4 @@ footer {
94131
.prettyprint code {
95132
padding: 2px 10px;
96133
line-height: 16px;
97-
height: 16px;
98134
}

hookdoc-conf.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"destination": "docs",
44
"template": "node_modules/wp-hookdoc/template",
55
"recurse": true,
6-
"readme": "./.github/hookdoc-tmpl/README.md"
6+
"readme": "./.github/hookdoc-tmpl/README.md",
7+
"tutorials": "./hookdocs"
78
},
89
"source": {
910
"includePattern": ".+\\.(php|inc)?$"

hookdocs/meta.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"wp-cli": {
3+
"title": "WP-CLI Commands"
4+
}
5+
}

hookdocs/wp-cli.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The following WP-CLI commands are supported by ClassifAI:
2+

0 commit comments

Comments
 (0)