utopia-project 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -0
- data/lib/utopia/project/base.rb +1 -1
- data/lib/utopia/project/guide.rb +1 -0
- data/lib/utopia/project/version.rb +1 -1
- data/pages/_page.xnode +2 -0
- data/pages/source/index.xnode +1 -1
- data/public/_static/site.css +2 -55
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d079c534edadc8369f297c530d544cece5c97b38d024e7aaf47a0fa8a2773d38
|
4
|
+
data.tar.gz: 4c85546bb35c5c72050241ab1ed2067f3c43e9ac8a2da243dbe06866dcdb785c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85e9bcab3e4b773701589a3fad01032bcfd5ec627d94dd0f3562d622ed27826b1235215038d3a339a7ba2a02f7b0e0ca74f7ef3f2bb7c8cc7e38b2941a0807bd
|
7
|
+
data.tar.gz: 2e3bf584b57cb29f3d11a68a794e6db7e351ea463ad4bc60a8ce8b945006e54cfe6f00cc2eeb1586add8d8df4c0d7e6a552332b2ad11758cb71e49d1c8cee350
|
data/README.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
A simple Ruby project documentation website.
|
4
4
|
|
5
|
+
## Motivation
|
6
|
+
|
7
|
+
I've used many documentation tools. Most are over-complicated and focus on what is possible rather than what is useful. Because I manage many open source projects, at a certain scale it makes sense to build something to suit your needs rather than try to adapt to existing systems. This is one such instance.
|
8
|
+
|
9
|
+
My goal is to provide task-centric documentation, and to continually improve the way it's presented. The primary entry point for new developers are the structured usage guides, however having rich cross-referencing into the code is equally important.
|
10
|
+
|
11
|
+
With that in mind, this web application provides such a model and will evolve over time to suit my requirements and the needs of my users.
|
12
|
+
|
5
13
|
## Usage
|
6
14
|
|
7
15
|
Please see the <a href="https://socketry.github.io/utopia-project/">project documentation</a> or run it locally using `bake utopia:project:serve`.
|
@@ -16,6 +24,11 @@ We welcome contributions to this project.
|
|
16
24
|
4. Push to the branch (`git push origin my-new-feature`)
|
17
25
|
5. Create new Pull Request
|
18
26
|
|
27
|
+
## See Also
|
28
|
+
|
29
|
+
- [Utopia](https://github.com/socketry/utopia) — The website framework which powers this documentation application.
|
30
|
+
- [Decode](https://github.com/ioquatix/decode) — The source code parser and cross-referencing library.
|
31
|
+
|
19
32
|
## License
|
20
33
|
|
21
34
|
Released under the MIT license.
|
data/lib/utopia/project/base.rb
CHANGED
data/lib/utopia/project/guide.rb
CHANGED
@@ -27,6 +27,7 @@ require 'kramdown'
|
|
27
27
|
|
28
28
|
module Utopia
|
29
29
|
module Project
|
30
|
+
# Provides structured access to a directory which contains documentation and source code to explain a specific process.
|
30
31
|
class Guide
|
31
32
|
# Initialize the example with the given root path.
|
32
33
|
# @param base [Base] The base instance for the project.
|
data/pages/_page.xnode
CHANGED
data/pages/source/index.xnode
CHANGED
data/public/_static/site.css
CHANGED
@@ -89,7 +89,7 @@ li {
|
|
89
89
|
margin: 0.8rem;
|
90
90
|
}
|
91
91
|
|
92
|
-
ul {
|
92
|
+
ul.index {
|
93
93
|
padding: 0;
|
94
94
|
padding-left: 0.5rem;
|
95
95
|
margin: 0.5rem;
|
@@ -97,11 +97,6 @@ ul {
|
|
97
97
|
list-style: none;
|
98
98
|
}
|
99
99
|
|
100
|
-
lli:before {
|
101
|
-
content: "›";
|
102
|
-
margin-right: 0.4rem;
|
103
|
-
}
|
104
|
-
|
105
100
|
li > ul, li > ol {
|
106
101
|
margin: 0;
|
107
102
|
}
|
@@ -145,53 +140,5 @@ footer {
|
|
145
140
|
font-size: 0.65rem;
|
146
141
|
|
147
142
|
margin: 1rem;
|
148
|
-
|
149
|
-
|
150
|
-
/* Editor */
|
151
|
-
|
152
|
-
.editor form {
|
153
|
-
position: absolute;
|
154
|
-
|
155
|
-
display: flex;
|
156
|
-
flex-direction: column;
|
157
|
-
align-items: center;
|
158
|
-
|
159
|
-
width: 100%;
|
160
|
-
height: 100%;
|
161
|
-
}
|
162
|
-
|
163
|
-
.editor .header {
|
164
|
-
flex-grow: 0;
|
165
|
-
width: 100%;
|
166
|
-
|
167
|
-
display: flex;
|
168
|
-
justify-content: space-between;
|
169
|
-
align-items: center;
|
170
|
-
|
171
|
-
z-index: 10;
|
172
|
-
|
173
|
-
border-bottom: 0.2rem solid var(--accent-color);
|
174
|
-
background-color: var(--header-color);
|
175
|
-
}
|
176
|
-
|
177
|
-
.editor .header * {
|
178
|
-
margin: 0.5rem;
|
179
|
-
}
|
180
|
-
|
181
|
-
.editor textarea {
|
182
|
-
flex-grow: 1;
|
183
|
-
width: 100%;
|
184
|
-
|
185
|
-
resize: none;
|
186
|
-
outline: none;
|
187
|
-
|
188
|
-
box-sizing: border-box;
|
189
|
-
margin: 0; padding: 0.5rem;
|
190
|
-
|
191
|
-
border: none;
|
192
|
-
background: none;
|
193
|
-
}
|
194
|
-
|
195
|
-
textarea {
|
196
|
-
color: var(--main-color);
|
143
|
+
margin-top: 5rem;
|
197
144
|
}
|