Commit 5cfa00be54

5cfa00be54b1b457e0fc5e9d792e1c5b06ab6276

parent: 57c2d34d95

Unsigned

cmc <hello@cleberg.net> · 2025-08-01 01:41 UTC

fix: remove github files

Layout: unified · split

.github/FUNDING.yml deleted −1
@@ -1 +0,0 @@
1github: [ccleberg]
.github/workflows/ruff.yml deleted −37
@@ -1,37 +0,0 @@
1name: Ruff
2
3on:
4 push:
5 paths:
6 - '**.py'
7
8jobs:
9 build:
10 runs-on: ubuntu-latest
11 strategy:
12 matrix:
13 python-version: ["3.x"]
14 steps:
15 - uses: actions/checkout@v4
16 - name: Set up Python ${{ matrix.python-version }}
17 uses: actions/setup-python@v5
18 with:
19 python-version: ${{ matrix.python-version }}
20 ref: ${{ github.event.pull_request.head.ref }}
21 - name: Install dependencies
22 run: |
23 python -m pip install --upgrade pip
24 pip install pandas plotly
25 - name: Install Ruff
26 uses: astral-sh/ruff-action@v3.2.2
27 - name: Ruff Actions
28 run: |
29 ruff check --fix
30 ruff format
31 - name: Add and Commit
32 uses: EndBug/add-and-commit@v9
33 env:
34 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35 with:
36 default_author: github_actions
37 pathspec_error_handling: ignore
CODEOWNERS deleted −1
@@ -1 +0,0 @@
1* @ccleberg
README.md added +176
@@ -0,0 +1,176 @@
1
2# Table of Contents
3
41. [cleberg.net](#org7e6a5fc)
5 1. [Site Structure](#orgdb622a7)
6 2. [Dependencies](#org4029d4c)
7 3. [Viewing the Site Examples](#orgd805aba)
8 4. [Configuration](#orgc1b1a3d)
9 5. [Setup Instructions](#org16caf48)
10 6. [Building and Publishing the Site](#org507540e)
11 7. [Creating New Blog Posts](#org99866ce)
12 8. [Contributing and Issue Tracking](#org57a6a9c)
13
14
15<a id="org7e6a5fc"></a>
16
17# cleberg.net
18
19This document describes the structure and usage of the `cleberg.net` project.
20The site is built and maintained using the Org-Mode publishing system within
21Emacs, supported by the weblorg package. This setup allows for generation of
22static HTML content from Org files using a declarative configuration.
23
24
25<a id="orgdb622a7"></a>
26
27## Site Structure
28
29The project source files are written in Org-Mode format and reside in the
30repository. These files are processed by the publishing engine to produce HTML
31output, which can then be deployed to a web server.
32
33The main site components are:
34
35- Org source files containing content, including blog posts and pages.
36- A configuration file (`publish.el`) that specifies publishing parameters like
37 base URL, output directories, and export options.
38- Assets such as images and stylesheets, located in designated subdirectories.
39- Utility scripts (e.g., `build.sh`) to facilitate building and deployment.
40
41
42<a id="org4029d4c"></a>
43
44## Dependencies
45
46The publishing system depends on:
47
48- Emacs text editor with Org-Mode.
49- The weblorg package, available at <https://github.com/emacs-love/weblorg>, which
50 provides advanced Org publishing functionality and theming support.
51
52
53<a id="orgd805aba"></a>
54
55## Viewing the Site Examples
56
57Screenshots illustrating the site in both light and dark display modes are
58included in the `./screenshots/` directory.
59
60<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
61
62
63<colgroup>
64<col class="org-left" />
65
66<col class="org-left" />
67</colgroup>
68<thead>
69<tr>
70<th scope="col" class="org-left">Light Mode</th>
71<th scope="col" class="org-left">Dark Mode</th>
72</tr>
73</thead>
74<tbody>
75<tr>
76<td class="org-left"><img src="./screenshots/light.png" alt="light.png" /></td>
77<td class="org-left"><img src="./screenshots/dark.png" alt="dark.png" /></td>
78</tr>
79</tbody>
80</table>
81
82
83<a id="orgc1b1a3d"></a>
84
85## Configuration
86
87Custom site settings are centralized in the `publish.el` file. This file
88establishes key variables such as:
89
90- The base URL for links.
91- Output directories.
92- Publishing rules defining which files are converted and how.
93- Theme settings managed by weblorg.
94
95Users intending to modify site parameters should review and edit this file
96accordingly. The weblorg documentation contains extensive details on
97configuration options and expected formats.
98
99
100<a id="org16caf48"></a>
101
102## Setup Instructions
103
104To obtain a working copy of this repository, execute the following commands
105within a shell environment or Emacs&rsquo; shell interface:
106
107 git clone https://github.com/ccleberg/cleberg.net
108 cd cleberg.net
109 emacs -nw
110
111For users employing Doom Emacs, open any repository Org file using `SPC f f` to
112access the content.
113
114
115<a id="org507540e"></a>
116
117## Building and Publishing the Site
118
119The publishing process involves invoking Emacs with the `publish.el` script,
120which performs the export of Org documents to HTML output.
121
122Configure the environment variable `ENV` as follows:
123
124- If `ENV` is set to `prod`, the script uses production base URL settings as
125 defined in `publish.el`.
126- If `ENV` is unset or set differently, the script defaults to development
127 settings, typically using `localhost:8000` as the base URL.
128
129Example commands to build the site:
130
131 # Production build:
132 ENV=prod emacs --script publish.el
133
134 # Development build:
135 emacs --script publish.el
136
137Generated site files reside in the designated output directory, ready for
138deployment. Deployment can be performed by standard file transfer protocols such
139as `scp` or SFTP.
140
141The `./build.sh` script automates the build process. It can be executed with or
142without the `ENV` variable to perform production or development builds
143respectively.
144
145 # Production build script:
146 ENV=prod ./build.sh
147
148 # Development build script:
149 ./build.sh
150
151
152<a id="org99866ce"></a>
153
154## Creating New Blog Posts
155
156To add new blog content, follow this procedure within Emacs:
157
1581. Open a new Org file (via `C-x C-f` or Doom&rsquo;s `SPC f f`).
1592. Insert the contents of the post template with `C-x i`, sourcing from
160 `utils/template.org`.
1613. Modify the new file as needed to add post content and metadata.
162
163This method streamlines content creation by reusing a preformatted template.
164
165
166<a id="org57a6a9c"></a>
167
168## Contributing and Issue Tracking
169
170Contributions and bug reports are tracked through the repository&rsquo;s issue tab on
171GitHub. Users are encouraged to submit reports, feature requests, or pull
172requests following standard repository guidelines.
173
174For further details on the usage of Org-Mode, weblorg configuration, or
175publishing workflows, consult the respective documentation sources.
176