aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2025-07-31 22:13:22 -0500
committerChristian Cleberg <hello@cleberg.net>2025-07-31 22:13:22 -0500
commit47da183afdcc90c7ebfcecb1fea9db07460897e8 (patch)
tree1ee5a09befbd14995d8939754ee53a2329516a04
parent72650f6d2fe59a48d9cc63f022cd2de150fbde7b (diff)
downloadcleberg.net-47da183afdcc90c7ebfcecb1fea9db07460897e8.tar.gz
cleberg.net-47da183afdcc90c7ebfcecb1fea9db07460897e8.tar.bz2
cleberg.net-47da183afdcc90c7ebfcecb1fea9db07460897e8.zip
fix: format readme
-rw-r--r--README.md138
-rw-r--r--README.org123
2 files changed, 43 insertions, 218 deletions
diff --git a/README.md b/README.md
index 1cacaf0..9cf3bd7 100644
--- a/README.md
+++ b/README.md
@@ -1,19 +1,3 @@
-
-# Table of Contents
-
-1. [cleberg.net](#org7e6a5fc)
- 1. [Site Structure](#orgdb622a7)
- 2. [Dependencies](#org4029d4c)
- 3. [Viewing the Site Examples](#orgd805aba)
- 4. [Configuration](#orgc1b1a3d)
- 5. [Setup Instructions](#org16caf48)
- 6. [Building and Publishing the Site](#org507540e)
- 7. [Creating New Blog Posts](#org99866ce)
- 8. [Contributing and Issue Tracking](#org57a6a9c)
-
-
-<a id="org7e6a5fc"></a>
-
# cleberg.net
This document describes the structure and usage of the `cleberg.net` project.
@@ -21,9 +5,6 @@ The site is built and maintained using the Org-Mode publishing system within
Emacs, supported by the weblorg package. This setup allows for generation of
static HTML content from Org files using a declarative configuration.
-
-<a id="orgdb622a7"></a>
-
## Site Structure
The project source files are written in Org-Mode format and reside in the
@@ -32,88 +13,57 @@ output, which can then be deployed to a web server.
The main site components are:
-- Org source files containing content, including blog posts and pages.
-- A configuration file (`publish.el`) that specifies publishing parameters like
- base URL, output directories, and export options.
-- Assets such as images and stylesheets, located in designated subdirectories.
-- Utility scripts (e.g., `build.sh`) to facilitate building and deployment.
-
-
-<a id="org4029d4c"></a>
+- Org source files containing content, including blog posts and pages.
+- A configuration file (`publish.el`) that specifies publishing parameters like
+ base URL, output directories, and export options.
+- Assets such as images and stylesheets, located in designated subdirectories.
+- Utility scripts (e.g., `build.sh`) to facilitate building and deployment.
## Dependencies
The publishing system depends on:
-- Emacs text editor with Org-Mode.
-- The weblorg package, available at <https://github.com/emacs-love/weblorg>, which
- provides advanced Org publishing functionality and theming support.
-
-
-<a id="orgd805aba"></a>
+- Emacs text editor with Org-Mode.
+- The weblorg package, available at <https://github.com/emacs-love/weblorg>, which
+ provides advanced Org publishing functionality and theming support.
## Viewing the Site Examples
Screenshots illustrating the site in both light and dark display modes are
included in the `./screenshots/` directory.
-<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
-
-
-<colgroup>
-<col class="org-left" />
-
-<col class="org-left" />
-</colgroup>
-<thead>
-<tr>
-<th scope="col" class="org-left">Light Mode</th>
-<th scope="col" class="org-left">Dark Mode</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td class="org-left"><img src="./screenshots/light.png" alt="light.png" /></td>
-<td class="org-left"><img src="./screenshots/dark.png" alt="dark.png" /></td>
-</tr>
-</tbody>
-</table>
-
-
-<a id="orgc1b1a3d"></a>
+| Light Mode | Dark Mode |
+| ---------------------------- | --------------------------- |
+| ![](./screenshots/light.png) | ![](./screenshots/dark.png) |
## Configuration
Custom site settings are centralized in the `publish.el` file. This file
establishes key variables such as:
-- The base URL for links.
-- Output directories.
-- Publishing rules defining which files are converted and how.
-- Theme settings managed by weblorg.
+- The base URL for links.
+- Output directories.
+- Publishing rules defining which files are converted and how.
+- Theme settings managed by weblorg.
Users intending to modify site parameters should review and edit this file
accordingly. The weblorg documentation contains extensive details on
configuration options and expected formats.
-
-<a id="org16caf48"></a>
-
## Setup Instructions
To obtain a working copy of this repository, execute the following commands
within a shell environment or Emacs&rsquo; shell interface:
- git clone https://git.sr.ht/~cxc/cleberg.net
- cd cleberg.net
- emacs -nw
+```shell
+git clone https://git.sr.ht/~cxc/cleberg.net
+cd cleberg.net
+emacs -nw
+```
For users employing Doom Emacs, open any repository Org file using `SPC f f` to
access the content.
-
-<a id="org507540e"></a>
-
## Building and Publishing the Site
The publishing process involves invoking Emacs with the `publish.el` script,
@@ -121,18 +71,20 @@ which performs the export of Org documents to HTML output.
Configure the environment variable `ENV` as follows:
-- If `ENV` is set to `prod`, the script uses production base URL settings as
- defined in `publish.el`.
-- If `ENV` is unset or set differently, the script defaults to development
- settings, typically using `localhost:8000` as the base URL.
+- If `ENV` is set to `prod`, the script uses production base URL settings as
+ defined in `publish.el`.
+- If `ENV` is unset or set differently, the script defaults to development
+ settings, typically using `localhost:8000` as the base URL.
Example commands to build the site:
- # Production build:
- ENV=prod emacs --script publish.el
-
- # Development build:
- emacs --script publish.el
+```shell
+# Production build:
+ENV=prod emacs --script publish.el
+
+# Development build:
+emacs --script publish.el
+```
Generated site files reside in the designated output directory, ready for
deployment. Deployment can be performed by standard file transfer protocols such
@@ -142,35 +94,31 @@ The `./build.sh` script automates the build process. It can be executed with or
without the `ENV` variable to perform production or development builds
respectively.
- # Production build script:
- ENV=prod ./build.sh
-
- # Development build script:
- ./build.sh
-
-
-<a id="org99866ce"></a>
+```shell
+# Production build script:
+ENV=prod ./build.sh
+
+# Development build script:
+./build.sh
+```
## Creating New Blog Posts
To add new blog content, follow this procedure within Emacs:
-1. Open a new Org file (via `C-x C-f` or Doom&rsquo;s `SPC f f`).
-2. Insert the contents of the post template with `C-x i`, sourcing from
- `utils/template.org`.
-3. Modify the new file as needed to add post content and metadata.
+1. Open a new Org file (via `C-x C-f` or Doom's `SPC f f`).
+2. Insert the contents of the post template with `C-x i`, sourcing from
+ `utils/template.org`.
+3. Modify the new file as needed to add post content and metadata.
This method streamlines content creation by reusing a preformatted template.
-<a id="org57a6a9c"></a>
-
## Contributing and Issue Tracking
-Contributions and bug reports are tracked through the repository&rsquo;s issue tab on
+Contributions and bug reports are tracked through the repository's issue tab on
GitHub. Users are encouraged to submit reports, feature requests, or pull
requests following standard repository guidelines.
For further details on the usage of Org-Mode, weblorg configuration, or
publishing workflows, consult the respective documentation sources.
-
diff --git a/README.org b/README.org
deleted file mode 100644
index 2e177fe..0000000
--- a/README.org
+++ /dev/null
@@ -1,123 +0,0 @@
-* cleberg.net
-
-This document describes the structure and usage of the =cleberg.net= project.
-The site is built and maintained using the Org-Mode publishing system within
-Emacs, supported by the weblorg package. This setup allows for generation of
-static HTML content from Org files using a declarative configuration.
-
-** Site Structure
-
-The project source files are written in Org-Mode format and reside in the
-repository. These files are processed by the publishing engine to produce HTML
-output, which can then be deployed to a web server.
-
-The main site components are:
-
-- Org source files containing content, including blog posts and pages.
-- A configuration file (=publish.el=) that specifies publishing parameters like
- base URL, output directories, and export options.
-- Assets such as images and stylesheets, located in designated subdirectories.
-- Utility scripts (e.g., =build.sh=) to facilitate building and deployment.
-
-** Dependencies
-
-The publishing system depends on:
-
-- Emacs text editor with Org-Mode.
-- The weblorg package, available at https://github.com/emacs-love/weblorg, which
- provides advanced Org publishing functionality and theming support.
-
-** Viewing the Site Examples
-
-Screenshots illustrating the site in both light and dark display modes are
-included in the =./screenshots/= directory.
-
-| Light Mode | Dark Mode |
-|-------------------------+------------------------|
-| [[./screenshots/light.png]] | [[./screenshots/dark.png]] |
-
-** Configuration
-
-Custom site settings are centralized in the =publish.el= file. This file
-establishes key variables such as:
-
-- The base URL for links.
-- Output directories.
-- Publishing rules defining which files are converted and how.
-- Theme settings managed by weblorg.
-
-Users intending to modify site parameters should review and edit this file
-accordingly. The weblorg documentation contains extensive details on
-configuration options and expected formats.
-
-** Setup Instructions
-
-To obtain a working copy of this repository, execute the following commands
-within a shell environment or Emacs' shell interface:
-
-#+begin_src shell
-git clone https://git.sr.ht/~cxc/cleberg.net
-cd cleberg.net
-emacs -nw
-#+end_src
-
-For users employing Doom Emacs, open any repository Org file using =SPC f f= to
-access the content.
-
-** Building and Publishing the Site
-
-The publishing process involves invoking Emacs with the =publish.el= script,
-which performs the export of Org documents to HTML output.
-
-Configure the environment variable =ENV= as follows:
-
-- If =ENV= is set to =prod=, the script uses production base URL settings as
- defined in =publish.el=.
-- If =ENV= is unset or set differently, the script defaults to development
- settings, typically using =localhost:8000= as the base URL.
-
-Example commands to build the site:
-
-#+begin_src shell
-# Production build:
-ENV=prod emacs --script publish.el
-
-# Development build:
-emacs --script publish.el
-#+end_src
-
-Generated site files reside in the designated output directory, ready for
-deployment. Deployment can be performed by standard file transfer protocols such
-as =scp= or SFTP.
-
-The =./build.sh= script automates the build process. It can be executed with or
-without the =ENV= variable to perform production or development builds
-respectively.
-
-#+begin_src shell
-# Production build script:
-ENV=prod ./build.sh
-
-# Development build script:
-./build.sh
-#+end_src
-
-** Creating New Blog Posts
-
-To add new blog content, follow this procedure within Emacs:
-
-1. Open a new Org file (via =C-x C-f= or Doom's =SPC f f=).
-2. Insert the contents of the post template with =C-x i=, sourcing from
- =utils/template.org=.
-3. Modify the new file as needed to add post content and metadata.
-
-This method streamlines content creation by reusing a preformatted template.
-
-** Contributing and Issue Tracking
-
-Contributions and bug reports are tracked through the repository's issue tab on
-GitHub. Users are encouraged to submit reports, feature requests, or pull
-requests following standard repository guidelines.
-
-For further details on the usage of Org-Mode, weblorg configuration, or
-publishing workflows, consult the respective documentation sources.