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
- Added Docker service for SiteDiff
- Added configuration for SiteDiff to dedicated `dev` directory
- Moved `Dockerfile` for Jekyll service to dedicated `dev` directory
- Added BPKG commands for SiteDiff processes
- Updated GIT ignore to handle SiteDiff runtime files
- Updated README for SiteDiff processes
- Updated README for missing LESSC command
Copy file name to clipboardExpand all lines: README.md
+73-19
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# bpkg.github.io
1
+
# bpkg.github.io (bpkg.sh)
2
2
3
3
`bpkg` is a lightweight bash package manager.
4
4
This repository contains the source code of it's homepage.
@@ -23,28 +23,37 @@ In the remainder of this document, if there is a accompanying `bpkg` _command_ i
23
23
24
24
## Docker Environment
25
25
26
-
This environment is not necessary to use if you'd rather run everything directly on your host system. This environment is provided however, to facilitate all the required components for building and development of `bpkg` site. There are associated `bpkg` commands to interact with the Docker environment.
26
+
This environment is not necessary to use if you'd rather run everything directly on your host system. This environment is provided however, to facilitate all the required components for building and development of `bpkg` site.
27
+
28
+
A `docker-composer.yml` file exists in the root directory of the project to specify the Docker services
29
+
30
+
*`jekyll`– Perform Jekyll and Rake processes
31
+
> **NOTE:**_A custom `Dockerfile` exists to generate the image for this service, in the `dev/jekyll` directory_
32
+
*`lessc`– Implements LESS preprocessing
33
+
*`sitediff`– Host SiteDiff for performing site comparison
34
+
35
+
There are associated `bpkg` commands to interact with the Docker environments, accompanying Docker commands will be listed like the other `bpkg` commands.
27
36
28
37
## Dependencies
29
38
30
39
This website was made with the [Jekyll][jekyll] engine, so it depends on a few
31
-
Ruby Gems. To install them, run the following command.
40
+
Ruby Gems. To install them, run the following command:
32
41
33
42
```bash
34
43
$ gem install jekyll
35
44
```
36
45
37
46
It might take a while to finish, but once it does you're ready to go.
38
47
39
-
## How to edit
48
+
## Edit Site Pages
40
49
41
50
To **make changes** to the page or **run it locally**, clone this GitHub
42
51
repository and make sure you have _installed the dependencies_ above.
43
52
44
53
Then, it's a matter of editing pages and running `rake` tasks. Here's a rundown
45
-
of possible commands (thanks to [this great quickstart on Jekyll][tuto]):
54
+
of possible commands (thanks to [this great quickstart on Jekyll][tuto]).
46
55
47
-
---
56
+
### Preview Site
48
57
49
58
```bash
50
59
$ rake preview
@@ -56,12 +65,12 @@ $ rake preview
56
65
Builds the entire site to a local folder `_site` and launches a webserver to
57
66
preview it.
58
67
59
-
To see the full site, point your browser to `localhost:4000`.
68
+
To see the full site, point your browser to [`localhost:4000`][preview-url].
60
69
61
70
If you make any changes on any files, it will regenerate the website
62
71
automatically.
63
72
64
-
---
73
+
### Create Post
65
74
66
75
```bash
67
76
$ rake post title="Hello, World!"
@@ -76,7 +85,7 @@ the date is the current, by default.
76
85
No further changes are required, the post will get automatically inserted on the
77
86
site.
78
87
79
-
---
88
+
### Create Page
80
89
81
90
```bash
82
91
$ rake page name="about"
@@ -96,6 +105,47 @@ $ rake page name="about.html"
96
105
97
106
Alternative way to create a new page, on this case it will be `./about.html`.
98
107
108
+
## Update Style Sheets
109
+
110
+
This project uses [LESS (Leaner Style Sheets)][less] files to generate the CSS for this site. When modifying the site style sheets under the `/assets` directory, update the LESS files (ie: `*.less`). To update the CSS file after making changes to any of the LESS files, run the following command (from the root of the project):
When working on the site, sometimes it's helpful to see changes between the production copy and the output of local changes. A report of changes can be generated with the [SiteDiff][sitediff] tool, to simplify this process a Docker service has been included with a few `bpkg` commands. This is a multi-step process (each step has an associated 'bpkg' command), but a single command can be used to run all the steps. Before performing these steps the local version needs to be in [preview mode](#preview-site).
122
+
123
+
### SiteDiff - Crawl Sites
124
+
125
+
The SiteDiff utility will crawl the production and the preview versions of the site prior to performing the comparison:
126
+
127
+
> **BPKG:**`site-crawl`
128
+
129
+
### SiteDiff - Diff Crawled Sites
130
+
131
+
After crawling the versions of the sites, SiteDiff will compare the preview against the production version and generate a change report:
132
+
133
+
> **BPKG:**`site-diff`
134
+
135
+
### SiteDiff - Serve Report
136
+
137
+
The generated report can be served for viewing by SiteDiff:
138
+
139
+
> **BPKG:**`site-serve`
140
+
141
+
To see the report, point your browser to [`localhost:13080`][report-url].
142
+
143
+
### SiteDiff
144
+
145
+
The preceding command performs the following steps (which can be run individually):
146
+
147
+
> **BPKG:**`sitediff`
148
+
99
149
## Notes
100
150
101
151
* When producing content (writing pages/posts) keep in mind
@@ -111,13 +161,17 @@ Alternative way to create a new page, on this case it will be `./about.html`.
111
161
This site uses [Jekyll Bootstrap][boots] with a heavily customized version of
112
162
[the_program][theme] theme, originally made by [Yuya Saito][saito].
0 commit comments