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
1. Renamed `build/` => `_build/`.
2. Renamed `_data/` => `data/`.
3. Renamed `src/` => `content/`.
4. Renamed `content/portal/` => `content/pages/`
5. Converted `_build/includes/built/filename.adoc` to `_build/includes/_built_filename.adoc`.
6. Enhanced README instructions for clarity.
7. Added The MIT License.
The convention I have in mind is root-level directories that start with `_` are _not_ migrated into the build directory during processing. That is, they do not contain what we consider content but rather files that configure or shape the build/output. Small-data files that go in `data/` contain content about the product or other subject matter of the publication. Meanwhile `_templates` contains content that will be expressed more appropriately in preprocessed files, so we can keep that stuff out of `_build/`. The `data/` dir is likely to get moved into `_build/site` or wherever the SSG will look for menu and other data.
Changing `portal/` to `pages/` in the `content/` dir just seems like a good practice. "Page" is a general concept, generally akin to a web page or a section of a book chapter, but for non-topical content. This is a place for miscellaneous web pages you want to accompany your core docs. These may or may not be included in a PDF edition of the same docs.
Flattening the `built/` subdirectory was mainly to eliminate messes caused with relative paths in AsciiDoc. We almost certainly still need to address subdirectories inside `topics/` and `pages/`.
Copy file name to clipboardExpand all lines: README.adoc
+20-16Lines changed: 20 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,21 +8,19 @@ This creates a truly open, highly portable system for developing and maintaining
8
8
9
9
Complete documentation for LDCMF is still being developed.
10
10
11
-
The following procedure is a *bootstrapping operation* to get an _actual LDCMF project_ started.
11
+
The following procedure is a *bootstrapping operation* to get an _actual LDCMF-based project_ started.
12
12
It further sets up initial files based on custom preferences.
13
-
The newly generated `README.adoc` instructs future users to set up and use your docs.
14
-
15
-
=== Quickstart
16
13
17
14
[WARNING]
18
15
This file (`README.adoc`) is the README for the generic LiquiDoc CMF project bootstrap repository.
19
-
If you wish to keep this file, move/rename it _before_ running the quickstart, which generates a proper `README.adoc` for your actual docs project/directory, which this directory and its contents then becomes.
16
+
If you wish to keep this file, move/rename it _before_ running the quickstart, which generates a proper `README.adoc` for your actual docs project/directory, which this directory and its contents then _becomes_.
20
17
21
18
If you have link:https://git-scm.com/book/en/v2/Getting-Started-Installing-Git[Git] and link:https://www.ruby-lang.org/en/downloads/[Ruby runtime] installed, you can get going with LiquiDoc CMF in a few quick steps.
.. _If this project is part of a parent directory's Git repo_, remove local Git files.
47
+
.. _If your docs project is part of a parent directory's Git repo_, remove local Git files so your new docs source will be absorbed into the parent repo.
50
48
+
51
49
----
52
50
rm -rf .git
53
51
----
52
+
+
53
+
Now your new directory/files will appear as uncommitted additions to the parent project (`git status`).
54
54
55
55
. Run Bundler to install dependencies.
56
56
+
57
57
----
58
-
bundle install
58
+
bundle
59
59
----
60
60
+
61
-
If Bundler is not installed, run `gem install bundler`, then repeat this command.
61
+
If an error indicates Bundler is not installed, run `gem install bundler`, then repeat this command.
62
62
63
63
. Rename this README so _init_ does not overwrite it.
64
64
+
65
65
.Example
66
66
----
67
67
mv README.adoc README.meta.adoc
68
68
----
69
+
+
70
+
This file may confuse future users; we advise removing it before sharing your LDCMF project.
69
71
70
72
. Edit your project metafile.
71
73
+
72
-
In your favorite text/code editor, open `_data/meta.yml` and fill out the required info, then *save the file*.
74
+
In your favorite text/code editor, open `data/meta.yml` and fill out the required info, then *save the file*.
73
75
74
76
. Run LiquiDoc with the LDCMF initialization config.
75
77
+
76
78
----
77
79
bundle exec liquidoc -c _init/init.yml
78
80
----
81
+
+
82
+
This procedure customizes a few starter files based on `meta.yml`.
79
83
80
-
. You can now review and edit your `README.adoc` and `src/index.adoc` files with custom content.
84
+
. You can now review your `README.adoc` and `content/index.adoc` files, editing and populating them with custom content.
81
85
82
86
. Delete or move the `README.meta.adoc` file (this file) and the `_init/` directory, which you will no longer need.
83
87
84
88
Further instructions are in your new README!
85
-
The new README file is oriented for your project's future users, so you don't need to repeat setup steps.
89
+
The new README file is oriented for your project's future users (and you!), so you don't need to repeat setup steps.
86
90
Just run your first build.
87
91
88
92
== Structure
@@ -95,15 +99,15 @@ liquidoc-cmf/
95
99
├── _configs/
96
100
│ ├── asciidoctor.yml
97
101
│ └── build-docs.yml
98
-
├── _data/
102
+
├── data/
99
103
│ └── meta.yml
100
104
├── _templates/
101
105
│ └── liquid/
102
106
│ └── company.asciidoc
103
-
├── src/
107
+
├── content/
104
108
│ ├── assets/
105
109
│ ├── includes/
106
-
│ ├── portal/
110
+
│ ├── pages/
107
111
│ ├── topics/
108
112
│ └── index.adoc
109
113
└── theme/
@@ -112,7 +116,7 @@ Gemfile
112
116
----
113
117
114
118
[NOTE]
115
-
Empty directories (ex., `src/assets/`) must be manually added.
119
+
Empty directories (ex., `content/assets/`) must be manually added.
0 commit comments