Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add dark mode support to website#38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sylvestre merged 6 commits intouutils:mainfromLouisDISPA:main
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions.github/workflows/website.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -64,9 +64,9 @@ jobs:
cd findutils
cd docs
mdbook build

- name: Run Zola
uses: shalzz/zola-deploy-action@v0.18.0
uses: shalzz/zola-deploy-action@v0.20.0
env:
BUILD_DIR: uutils.github.io
BUILD_ONLY: true
Expand DownExpand Up@@ -158,6 +158,7 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'schedule'
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
3 changes: 2 additions & 1 deletion.gitignore
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
/public/
/public/
/static/syntax-*
4 changes: 2 additions & 2 deletionsREADME.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,7 +8,7 @@ It is available on:
https://uutils.github.io/coreutils/docs/

Can be generated with:
```
```bash
cargo run --bin uudoc --all-features
cd docs
mdbook build
Expand All@@ -20,7 +20,7 @@ It is available on:
https://uutils.github.io/dev/coreutils/

Can be generated with:
```
```bash
cargo doc --no-deps --all-features --workspace
```

Expand Down
11 changes: 7 additions & 4 deletionsconfig.toml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,10 +7,13 @@ description = ""

default_language = "en"

paginate_by = 10

generate_feed = true
generate_feeds = true

[markdown]
highlight_code = true
highlight_theme = "OneHalfLight"
highlight_theme = "css"

highlight_themes_css = [
{ theme = "OneHalfDark", filename = "syntax-theme-dark.css" },
{ theme = "OneHalfLight", filename = "syntax-theme-light.css" },
]
7 changes: 5 additions & 2 deletionscontent/_index.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,8 +4,11 @@ template = "index.html"
+++

<div class="hero">
<img src="logo.svg">
<div>uutils</div>
<picture>
<source srcset="logo-dark.svg" media="(prefers-color-scheme: dark)">
<img src="logo.svg">
</picture>
<div>uutils</div>
</div>

The uutils project reimplements ubiquitous command line utilities in
Expand Down
12 changes: 6 additions & 6 deletionscontent/gsoc.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -65,8 +65,8 @@ However, a bunch of work remains on the color side for a full GNU compat. Other
We have 12 remaining failing tests.

To get the list of failing tests, run:
```
$ ./util/remaining-gnu-error.py |grep "/ls/"
```bash
$ ./util/remaining-gnu-error.py |grep "/ls/"
```

- Difficulty: Medium
Expand All@@ -82,8 +82,8 @@ Most of the features in `cp` have been implemented by now.
However, some corner cases needs to be implemented. We have 16 remaining failing tests.

To get the list of failing tests, run:
```
$ ./util/remaining-gnu-error.py |grep "/cp/"
```bash
$ ./util/remaining-gnu-error.py |grep "/cp/"
```

- Difficulty: Medium
Expand All@@ -99,8 +99,8 @@ Most of the features in `mv` have been implemented by now.
However, some corner cases needs to be implemented. We have 10 remaining failing tests.

To get the list of failing tests, run:
```
$ ./util/remaining-gnu-error.py |grep "/mv/"
```bash
$ ./util/remaining-gnu-error.py |grep "/mv/"
```

- Difficulty: Medium
Expand Down
61 changes: 61 additions & 0 deletionsstatic/logo-dark.svg
View file
Open in desktop
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
88 changes: 65 additions & 23 deletionsstatic/style.css
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,50 @@
:root {
/* Light theme colors (default) */

--accent-color: #c04828;

--dark-fg-color: #fff;
--light-fg-color: #141414;
--light-bg-color: var(--dark-fg-color);
--dark-bg-color: var(--light-fg-color);
--fg-color: var(--light-fg-color);
--bg-color: var(--light-bg-color);
--light-link-color: #c04828;
--dark-link-color: #c04828;
--link-color: var(--light-link-color);
--link-color: var(--accent-color);
--light-highlight-bg-color: #ededed;
--light-highlight-fg-color: #595959;
--dark-highlight-bg-color: #27272a;
--dark-highlight-fg-color: #ededed;
--highlight-fg-color: var(--light-highlight-fg-color);
--highlight-bg-color: var(--light-highlight-bg-color);
--link-text-color: var(--accent-color);
--header-border-color: #ddd;
--post-bg-color: #e5e5e5;
--font-face: "Fira Sans", sans-serif;

--github-icon: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
--github-icon-black: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='000' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
:root {
--fg-color: #e1e1e1;
--bg-color: #222222;
--link-color: var(--accent-color);
--light-highlight-bg-color: #2d2d2d;
--light-highlight-fg-color: #ffffff;
--dark-highlight-bg-color: #27272a;
--dark-highlight-fg-color: #ededed;
--highlight-fg-color: var(--light-highlight-fg-color);
--highlight-bg-color: var(--light-highlight-bg-color);
--link-text-color: var(--accent-color);
--header-border-color: #404040;
--post-bg-color: #2d2d2d;
}
}

body {
background-color: var(--bg-color);
color: var(--fg-color);
}

*,
Expand DownExpand Up@@ -89,7 +119,7 @@ header {
justify-items: center;
padding: 0.5rem 2rem;
width: 100%;
border-bottom: 1px solid#ddd;
border-bottom: 1px solidvar(--header-border-color);
font-size: 1.2rem;
}

Expand All@@ -111,13 +141,12 @@ header .home svg {
}

header a {
color:black;
color:var(--fg-color);
border-bottom: 2px solid transparent;
}

header a:hover:not(.home) {
color: black;
border-bottom: 2px solid #c04828;
border-bottom: 2px solid var(--link-text-color);
}

.navigation-block {
Expand DownExpand Up@@ -149,13 +178,13 @@ header .icon {
#mobile-open-navigation button div {
margin: 0.5em 0;
width: 2em;
border-bottom: 0.25em solidblack;
border-bottom: 0.25em solidvar(--fg-color);
}

header {
grid-template-columns: max-content 1fr;
}

.spacer {
display: none;
}
Expand All@@ -165,7 +194,7 @@ header .icon {
grid-column: auto / span 2;
justify-self: left;
}

header:not(.open) .spacer,
header:not(.open) .navigation-block {
display: none;
Expand DownExpand Up@@ -273,8 +302,8 @@ ul {
/* FOOTER */
footer {
align-items: center;
background-color: var(--fg-color);
color: var(--bg-color);
background-color: var(--light-fg-color);
color: var(--light-bg-color);
display: flex;
flex-grow: 0;
flex-shrink: 1;
Expand All@@ -286,17 +315,23 @@ footer {
}

.github-icon {
background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
background-image:var(--github-icon);
height: 1.25rem;
width: 1.25rem;
}

.github-icon-black {
background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='000' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
background-image:var(--github-icon-black);
height: 1em;
width: 1em;
}

@media (prefers-color-scheme: dark) {
.github-icon-black {
background-image: var(--github-icon);
}
}

.projects {
display: flex;
flex-direction: column;
Expand DownExpand Up@@ -325,13 +360,13 @@ footer {
margin-bottom: 0;
}

.project>span {
.project >span {
color: transparent;
transition: color 0.3s;
}

.project:hover>span {
color:black;
.project:hover >span {
color:var(--fg-color);
}

.project:hover {
Expand All@@ -342,6 +377,7 @@ footer {
font-size: 3em;
font-weight: 900;
margin-bottom: 0.5em;
text-transform: capitalize;
}

@media (min-width: 640px) {
Expand All@@ -353,21 +389,21 @@ footer {

.details {
margin-bottom: 1.5em;
color:#333;
color:var(--fg-color);
}

.post-thingy {
display: block;
padding: 1em;
color:black;
background:#e5e5e5;
color:var(--fg-color);
background:var(--post-bg-color);
border-radius: 0.3em;
border: 0.2em solid#e5e5e5;
border: 0.2em solidvar(--post-bg-color);
margin-bottom: 0.5em;
}

.post-thingy:hover {
border-color:#c04828;
border-color:var(--link-text-color);
background: transparent;
}

Expand All@@ -391,8 +427,14 @@ blockquote {

.links > a {
padding: 0.2em 1em;
color:#c04828;
color:var(--link-text-color);
border: 2px solid #c04828;
flex: 1;
text-align: center;
}

.links > a:hover {
color: var(--dark-fg-color);
background-color: #c04828;
border-color: #c04828;
}
Loading

[8]ページ先頭

©2009-2025 Movatter.jp