mirror of
https://github.com/RGBCube/Site
synced 2025-08-01 13:37:49 +00:00
Format JS CSS MD
This commit is contained in:
parent
edd579b1b8
commit
9a8df66d89
9 changed files with 85 additions and 83 deletions
140
LICENSE_GPL.md
140
LICENSE_GPL.md
|
@ -217,23 +217,23 @@ produce it from the Program, in the form of source code under the
|
||||||
terms of section 4, provided that you also meet all of these
|
terms of section 4, provided that you also meet all of these
|
||||||
conditions:
|
conditions:
|
||||||
|
|
||||||
- a) The work must carry prominent notices stating that you modified
|
- a) The work must carry prominent notices stating that you modified
|
||||||
it, and giving a relevant date.
|
it, and giving a relevant date.
|
||||||
- b) The work must carry prominent notices stating that it is
|
- b) The work must carry prominent notices stating that it is
|
||||||
released under this License and any conditions added under
|
released under this License and any conditions added under
|
||||||
section 7. This requirement modifies the requirement in section 4
|
section 7. This requirement modifies the requirement in section 4
|
||||||
to "keep intact all notices".
|
to "keep intact all notices".
|
||||||
- c) You must license the entire work, as a whole, under this
|
- c) You must license the entire work, as a whole, under this
|
||||||
License to anyone who comes into possession of a copy. This
|
License to anyone who comes into possession of a copy. This
|
||||||
License will therefore apply, along with any applicable section 7
|
License will therefore apply, along with any applicable section 7
|
||||||
additional terms, to the whole of the work, and all its parts,
|
additional terms, to the whole of the work, and all its parts,
|
||||||
regardless of how they are packaged. This License gives no
|
regardless of how they are packaged. This License gives no
|
||||||
permission to license the work in any other way, but it does not
|
permission to license the work in any other way, but it does not
|
||||||
invalidate such permission if you have separately received it.
|
invalidate such permission if you have separately received it.
|
||||||
- d) If the work has interactive user interfaces, each must display
|
- d) If the work has interactive user interfaces, each must display
|
||||||
Appropriate Legal Notices; however, if the Program has interactive
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
interfaces that do not display Appropriate Legal Notices, your
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
work need not make them do so.
|
work need not make them do so.
|
||||||
|
|
||||||
A compilation of a covered work with other separate and independent
|
A compilation of a covered work with other separate and independent
|
||||||
works, which are not by their nature extensions of the covered work,
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
@ -252,42 +252,42 @@ sections 4 and 5, provided that you also convey the machine-readable
|
||||||
Corresponding Source under the terms of this License, in one of these
|
Corresponding Source under the terms of this License, in one of these
|
||||||
ways:
|
ways:
|
||||||
|
|
||||||
- a) Convey the object code in, or embodied in, a physical product
|
- a) Convey the object code in, or embodied in, a physical product
|
||||||
(including a physical distribution medium), accompanied by the
|
(including a physical distribution medium), accompanied by the
|
||||||
Corresponding Source fixed on a durable physical medium
|
Corresponding Source fixed on a durable physical medium
|
||||||
customarily used for software interchange.
|
customarily used for software interchange.
|
||||||
- b) Convey the object code in, or embodied in, a physical product
|
- b) Convey the object code in, or embodied in, a physical product
|
||||||
(including a physical distribution medium), accompanied by a
|
(including a physical distribution medium), accompanied by a
|
||||||
written offer, valid for at least three years and valid for as
|
written offer, valid for at least three years and valid for as
|
||||||
long as you offer spare parts or customer support for that product
|
long as you offer spare parts or customer support for that product
|
||||||
model, to give anyone who possesses the object code either (1) a
|
model, to give anyone who possesses the object code either (1) a
|
||||||
copy of the Corresponding Source for all the software in the
|
copy of the Corresponding Source for all the software in the
|
||||||
product that is covered by this License, on a durable physical
|
product that is covered by this License, on a durable physical
|
||||||
medium customarily used for software interchange, for a price no
|
medium customarily used for software interchange, for a price no
|
||||||
more than your reasonable cost of physically performing this
|
more than your reasonable cost of physically performing this
|
||||||
conveying of source, or (2) access to copy the Corresponding
|
conveying of source, or (2) access to copy the Corresponding
|
||||||
Source from a network server at no charge.
|
Source from a network server at no charge.
|
||||||
- c) Convey individual copies of the object code with a copy of the
|
- c) Convey individual copies of the object code with a copy of the
|
||||||
written offer to provide the Corresponding Source. This
|
written offer to provide the Corresponding Source. This
|
||||||
alternative is allowed only occasionally and noncommercially, and
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
only if you received the object code with such an offer, in accord
|
only if you received the object code with such an offer, in accord
|
||||||
with subsection 6b.
|
with subsection 6b.
|
||||||
- d) Convey the object code by offering access from a designated
|
- d) Convey the object code by offering access from a designated
|
||||||
place (gratis or for a charge), and offer equivalent access to the
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
Corresponding Source in the same way through the same place at no
|
Corresponding Source in the same way through the same place at no
|
||||||
further charge. You need not require recipients to copy the
|
further charge. You need not require recipients to copy the
|
||||||
Corresponding Source along with the object code. If the place to
|
Corresponding Source along with the object code. If the place to
|
||||||
copy the object code is a network server, the Corresponding Source
|
copy the object code is a network server, the Corresponding Source
|
||||||
may be on a different server (operated by you or a third party)
|
may be on a different server (operated by you or a third party)
|
||||||
that supports equivalent copying facilities, provided you maintain
|
that supports equivalent copying facilities, provided you maintain
|
||||||
clear directions next to the object code saying where to find the
|
clear directions next to the object code saying where to find the
|
||||||
Corresponding Source. Regardless of what server hosts the
|
Corresponding Source. Regardless of what server hosts the
|
||||||
Corresponding Source, you remain obligated to ensure that it is
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
available for as long as needed to satisfy these requirements.
|
available for as long as needed to satisfy these requirements.
|
||||||
- e) Convey the object code using peer-to-peer transmission,
|
- e) Convey the object code using peer-to-peer transmission,
|
||||||
provided you inform other peers where the object code and
|
provided you inform other peers where the object code and
|
||||||
Corresponding Source of the work are being offered to the general
|
Corresponding Source of the work are being offered to the general
|
||||||
public at no charge under subsection 6d.
|
public at no charge under subsection 6d.
|
||||||
|
|
||||||
A separable portion of the object code, whose source code is excluded
|
A separable portion of the object code, whose source code is excluded
|
||||||
from the Corresponding Source as a System Library, need not be
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
@ -363,23 +363,23 @@ Notwithstanding any other provision of this License, for material you
|
||||||
add to a covered work, you may (if authorized by the copyright holders
|
add to a covered work, you may (if authorized by the copyright holders
|
||||||
of that material) supplement the terms of this License with terms:
|
of that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
- a) Disclaiming warranty or limiting liability differently from the
|
- a) Disclaiming warranty or limiting liability differently from the
|
||||||
terms of sections 15 and 16 of this License; or
|
terms of sections 15 and 16 of this License; or
|
||||||
- b) Requiring preservation of specified reasonable legal notices or
|
- b) Requiring preservation of specified reasonable legal notices or
|
||||||
author attributions in that material or in the Appropriate Legal
|
author attributions in that material or in the Appropriate Legal
|
||||||
Notices displayed by works containing it; or
|
Notices displayed by works containing it; or
|
||||||
- c) Prohibiting misrepresentation of the origin of that material,
|
- c) Prohibiting misrepresentation of the origin of that material,
|
||||||
or requiring that modified versions of such material be marked in
|
or requiring that modified versions of such material be marked in
|
||||||
reasonable ways as different from the original version; or
|
reasonable ways as different from the original version; or
|
||||||
- d) Limiting the use for publicity purposes of names of licensors
|
- d) Limiting the use for publicity purposes of names of licensors
|
||||||
or authors of the material; or
|
or authors of the material; or
|
||||||
- e) Declining to grant rights under trademark law for use of some
|
- e) Declining to grant rights under trademark law for use of some
|
||||||
trade names, trademarks, or service marks; or
|
trade names, trademarks, or service marks; or
|
||||||
- f) Requiring indemnification of licensors and authors of that
|
- f) Requiring indemnification of licensors and authors of that
|
||||||
material by anyone who conveys the material (or modified versions
|
material by anyone who conveys the material (or modified versions
|
||||||
of it) with contractual assumptions of liability to the recipient,
|
of it) with contractual assumptions of liability to the recipient,
|
||||||
for any liability that these contractual assumptions directly
|
for any liability that these contractual assumptions directly
|
||||||
impose on those licensors and authors.
|
impose on those licensors and authors.
|
||||||
|
|
||||||
All other non-permissive additional terms are considered "further
|
All other non-permissive additional terms are considered "further
|
||||||
restrictions" within the meaning of section 10. If the Program as you
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
|
|
@ -30,4 +30,4 @@
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
|
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ a {
|
||||||
|
|
||||||
width: min-content;
|
width: min-content;
|
||||||
|
|
||||||
padding: 0 .3em;
|
padding: 0 0.3em;
|
||||||
border-radius: 1em;
|
border-radius: 1em;
|
||||||
|
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
@ -79,4 +79,4 @@ a {
|
||||||
|
|
||||||
.left {
|
.left {
|
||||||
transform: rotateY(-89.99999999999999deg) translateZ(2.498em);
|
transform: rotateY(-89.99999999999999deg) translateZ(2.498em);
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,4 +77,4 @@ html {
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration-line: none;
|
text-decoration-line: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ nav {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
|
||||||
background-color: white;
|
background-color: white;
|
||||||
padding: .3em .6em;
|
padding: 0.3em 0.6em;
|
||||||
|
|
||||||
/* Rotated 180deg so it's top instead of bottom. */
|
/* Rotated 180deg so it's top instead of bottom. */
|
||||||
border-top-left-radius: 1em;
|
border-top-left-radius: 1em;
|
||||||
|
@ -38,7 +38,7 @@ nav {
|
||||||
nav a {
|
nav a {
|
||||||
color: black;
|
color: black;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-right: .6em;
|
margin-right: 0.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
@ -50,7 +50,7 @@ a:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
border-top: .15em solid white;
|
border-top: 0.15em solid white;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -58,5 +58,5 @@ footer {
|
||||||
font-size: small;
|
font-size: small;
|
||||||
|
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
padding-top: .5em;
|
padding-top: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
title: About
|
title: About
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
title: Contact
|
title: Contact
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -63,4 +63,4 @@
|
||||||
.left::after {
|
.left::after {
|
||||||
background: linear-gradient(to bottom, cyan, blue);
|
background: linear-gradient(to bottom, cyan, blue);
|
||||||
mask-image: linear-gradient(to left, blue, transparent);
|
mask-image: linear-gradient(to left, blue, transparent);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,15 +26,15 @@ pub static PAGES: LazyLock<HashMap<String, (Metadata, Markup)>> = LazyLock::new(
|
||||||
|
|
||||||
let content = String::from_utf8(file.content().to_vec()).unwrap();
|
let content = String::from_utf8(file.content().to_vec()).unwrap();
|
||||||
|
|
||||||
let (metadata, content) = content.split_once("---").unwrap();
|
let mut parts = content.splitn(2, "---").skip(1);
|
||||||
|
|
||||||
let metadata: Metadata = serde_yaml::from_str(metadata).unwrap();
|
let metadata: Metadata = serde_yaml::from_str(parts.next().unwrap()).unwrap();
|
||||||
|
|
||||||
log::info!("Adding page {path}");
|
log::info!("Adding page {path}");
|
||||||
|
|
||||||
Some((
|
Some((
|
||||||
path.strip_suffix(".md").unwrap().to_string(),
|
path.strip_suffix(".md").unwrap().to_string(),
|
||||||
(metadata, markdown::parse(content)),
|
(metadata, markdown::parse(parts.next().unwrap())),
|
||||||
))
|
))
|
||||||
}))
|
}))
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue