refactor: drop pattern

This commit is contained in:
alexm committed 2026-10-21 00:12:36 -04:00
1 parent 7a3c0d320a
commit 6ea657f4d0
8 files changed
+26 -56

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2026 Alex M. Maldonado
Copyright (c) 2026 Scienting
Copyright (c) 2016 The Gitea Authors
Copyright (c) 2015 The Gogs Authors
+5 -5
View File
@@ -1,4 +1,4 @@
# scient.ing theme for git.scient.ing
# scienting theme for git.scient.ing
This repository serves as the custom folder for Gitea.
Clone the repository once on your server and mount it into the container.
@@ -14,7 +14,7 @@ If you remove the mount, the default settings are restored.
| `public/assets/fonts/scienting/` | Atkinson Hyperlegible Next and Mono, self-hosted, with their license |
| `public/assets/img/` | the custom scienting git logo and favicons in place of Gitea's teacup |
| `templates/home.tmpl` | the signed-out home page, in the studio's voice |
| `templates/custom/extra_links_footer.tmpl` | adds a scient.ing link and the company's legal name, Scientific Computing Studio, LLC, to the footer |
| `templates/custom/extra_links_footer.tmpl` | adds a scienting link and the company's legal name, Scientific Computing Studio, LLC, to the footer |
These themes are based on Gitea 28.1.0’s original theme files, with changes only to brand colors, fonts, corner radius, and a faint graph-paper grid behind every page except the home page.
The named colors for status, diffs, and syntax highlighting remain as Gitea originally set them.
@@ -53,12 +53,12 @@ Add the following line under `volumes:` for the `server` service in `/opt/gitea/
Merge the contents of `app.ini.scienting` into `/opt/gitea/config/app.ini`.
This sets three main options:
- `APP_NAME = scient.ing git`, which replaces "Scienting Git" in page titles.
- `APP_NAME = scienting git`, which replaces "Scienting Git" in page titles.
It goes at the top of the file, before any `[section]`.
The brand writes the name lowercase, with the dot.
- `[ui] DEFAULT_THEME = scienting-auto`.
Your `app.ini` has no `THEMES` line, so Gitea offers every theme it finds.
If you add one later, it must list the three scient.ing themes.
If you add one later, it must list the three scienting themes.
- `[ui.meta]`, the author, description, and keywords search engines see.
Recreate the container to apply the new mount:
@@ -89,7 +89,7 @@ docker compose -f preview/compose.yml up -d
Open http://localhost:3000.
The first visit shows Gitea's install page.
Keep SQLite, set the site title to `scient.ing git`, create an administrator account under "Administrator Account Settings," and click Install.
Keep SQLite, set the site title to `scienting git`, create an administrator account under "Administrator Account Settings," and click Install.
The preview keeps its data in Docker volumes, so you only do this once.
The preview starts empty, so give it something to show:
+4 -4
View File
@@ -1,5 +1,5 @@
; Merge these into app.ini. APP_NAME belongs at the top of the file, before any [section].
APP_NAME = scient.ing git
APP_NAME = scienting git
[ui]
DEFAULT_THEME = scienting-auto
@@ -7,9 +7,9 @@ DEFAULT_THEME = scienting-auto
; THEMES = scienting-auto,scienting-light,scienting-dark,gitea-auto,gitea-light,gitea-dark
[ui.meta]
AUTHOR = Alex M. Maldonado
DESCRIPTION = Source code and project history for scient.ing, the Scientific Computing Studio.
KEYWORDS = scient.ing,scientific computing,research software,teaching,git
AUTHOR = Scienting
DESCRIPTION = Source code and project history for scienting, the Scientific Computing Studio.
KEYWORDS = scienting,scientific computing,research software,teaching,git
; Optional: hide the Gitea version from visitors (admins still see it).
; [other]
+1 -1
View File
@@ -2,6 +2,6 @@
@import "./theme-scienting-dark.css"(prefers-color-scheme: dark);
gitea-theme-meta-info {
--theme-display-name: "scient.ing auto";
--theme-display-name: "scienting auto";
--theme-color-scheme: "auto";
}
+4 -19
View File
@@ -1,5 +1,5 @@
/* scient.ing dark theme for Gitea 28: the greenboard.
Built from Gitea v28.1.0's theme-gitea-dark.css with the scient.ing tokens. */
/* scienting dark theme for Gitea 28: the greenboard.
Built from Gitea v28.1.0's theme-gitea-dark.css with the scienting tokens. */
@font-face {
font-family: "Atkinson Hyperlegible Next";
src: url("../fonts/scienting/AtkinsonHyperlegibleNext.woff2") format("woff2");
@@ -17,7 +17,7 @@
}
gitea-theme-meta-info {
--theme-display-name: "scient.ing dark";
--theme-display-name: "scienting dark";
--theme-color-scheme: "dark";
}
@@ -353,7 +353,7 @@ gitea-theme-meta-info {
filter: invert(100%) hue-rotate(180deg);
}
/* scient.ing: type, corners, and a few brand touches on top of the color variables */
/* scienting: type, corners, and a few brand touches on top of the color variables */
:root {
--fonts-override: "Atkinson Hyperlegible Next", -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial;
--fonts-monospace: "Atkinson Hyperlegible Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace, var(--fonts-emoji);
@@ -367,21 +367,6 @@ gitea-theme-meta-info {
font-family: var(--fonts-monospace);
}
/* scient.ing: the computation pad behind every page, faint, the way an engineering pad's grid
shows through from the back of the sheet. A line every 20 px and a slightly darker line every
100 px. To make the grid stronger or fainter, change the two colors below. The navbar, panels,
code, and menus keep their solid backgrounds. The home page turns the grid off in home.tmpl. */
:root {
--sc-pad-line: #19251E;
--sc-pad-line-major: #1C2921;
}
body {
background-color: var(--color-body);
background-image:
linear-gradient(var(--sc-pad-line-major) 1px, transparent 1px),
linear-gradient(90deg, var(--sc-pad-line-major) 1px, transparent 1px),
linear-gradient(var(--sc-pad-line) 1px, transparent 1px),
linear-gradient(90deg, var(--sc-pad-line) 1px, transparent 1px);
background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}
+4 -19
View File
@@ -1,5 +1,5 @@
/* scient.ing light theme for Gitea 28: the computation pad.
Built from Gitea v28.1.0's theme-gitea-light.css with the scient.ing tokens. */
/* scienting light theme for Gitea 28: the computation pad.
Built from Gitea v28.1.0's theme-gitea-light.css with the scienting tokens. */
@font-face {
font-family: "Atkinson Hyperlegible Next";
src: url("../fonts/scienting/AtkinsonHyperlegibleNext.woff2") format("woff2");
@@ -17,7 +17,7 @@
}
gitea-theme-meta-info {
--theme-display-name: "scient.ing light";
--theme-display-name: "scienting light";
--theme-color-scheme: "light";
}
@@ -328,7 +328,7 @@ gitea-theme-meta-info {
color-scheme: light;
}
/* scient.ing: type, corners, and a few brand touches on top of the color variables */
/* scienting: type, corners, and a few brand touches on top of the color variables */
:root {
--fonts-override: "Atkinson Hyperlegible Next", -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial;
--fonts-monospace: "Atkinson Hyperlegible Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace, var(--fonts-emoji);
@@ -342,21 +342,6 @@ gitea-theme-meta-info {
font-family: var(--fonts-monospace);
}
/* scient.ing: the computation pad behind every page, faint, the way an engineering pad's grid
shows through from the back of the sheet. A line every 20 px and a slightly darker line every
100 px. To make the grid stronger or fainter, change the two colors below. The navbar, panels,
code, and menus keep their solid backgrounds. The home page turns the grid off in home.tmpl. */
:root {
--sc-pad-line: #E5EDDD;
--sc-pad-line-major: #E1EAD9;
}
body {
background-color: var(--color-body);
background-image:
linear-gradient(var(--sc-pad-line-major) 1px, transparent 1px),
linear-gradient(90deg, var(--sc-pad-line-major) 1px, transparent 1px),
linear-gradient(var(--sc-pad-line) 1px, transparent 1px),
linear-gradient(90deg, var(--sc-pad-line) 1px, transparent 1px);
background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}
+1 -1
View File
@@ -1,2 +1,2 @@
<a href="https://scient.ing/">scient.ing</a>
<a href="https://scient.ing/">scienting</a>
<span>Scientific Computing Studio, LLC</span>
+6 -6
View File
@@ -1,5 +1,5 @@
{{template "base/head" .}}
{{/* scient.ing home page for Gitea 28. Uses only Gitea's color variables, so it also works under Gitea's own themes.
{{/* scienting home page for Gitea 28. Uses only Gitea's color variables, so it also works under Gitea's own themes.
*/}}
<div role="main" aria-label="{{ctx.Locale.Tr "home"}}" class="page-content home scienting-home">
<style>
@@ -188,7 +188,7 @@
<div class="sc-wrap">
<section class="sc-pad">
<div class="sc-copy">
<svg class="sc-wordmark" viewBox="42.0 -780.2 6245.0 1018.3" role="img" aria-label="scient.ing">
<svg class="sc-wordmark" viewBox="42.0 -780.2 6245.0 1018.3" role="img" aria-label="scienting">
<g transform="scale(1 -1)">
<g fill="currentColor">
<path transform="translate(0 0)"
@@ -221,18 +221,18 @@
engineering work.</p>
<p>Public repositories are open to browse without an account. Private work is limited to members. Accounts are
by invitation: email <a
href="mailto:alexm@scient.ing?subject=Access%20to%20git.scient.ing">alexm@scient.ing</a> to request one.</p>
href="mailto:alexm@scienting?subject=Access%20to%20git.scient.ing">alexm@scienting</a> to request one.</p>
<div class="sc-actions">
<a class="ui primary button" href="{{AppSubUrl}}/explore/repos">Explore repositories</a>
<a class="ui button" href="{{AppSubUrl}}/user/login">Sign in</a>
<a class="ui basic button" href="mailto:alexm@scient.ing?subject=Access%20to%20git.scient.ing">Request
<a class="ui basic button" href="mailto:alexm@scienting?subject=Access%20to%20git.scient.ing">Request
access</a>
</div>
</div>
<figure class="sc-yaml" aria-label="This server, described as a configuration file">
<figcaption>git.yaml</figcaption>
<pre><code><span class="k">host:</span> git.scient.ing
<span class="k">studio:</span> scient.ing
<span class="k">studio:</span> scienting
<span class="k">browse:</span> public repositories, no account
<span class="k">accounts:</span> by invitation
<span class="k">license:</span> Prosperity-3.0.0
@@ -254,7 +254,7 @@
</div>
<div class="sc-term">
<h2>The studio</h2>
<p>What we build, who pays for it, and why it works this way: <a href="https://scient.ing/">scient.ing</a>.</p>
<p>What we build, who pays for it, and why it works this way: <a href="https://scienting/">scienting</a>.</p>
</div>
</section>
</div>