-
+
+
Skip to content
+
+
+ 404
+ This page doesn’t exist.
+ 页面不存在。
+
+
+
diff --git a/site/guide.css b/site/guide.css
index a24c6e0..c5800b1 100644
--- a/site/guide.css
+++ b/site/guide.css
@@ -23,7 +23,7 @@
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.guide-copy pre code { font: 400 .93rem/1.7 var(--mono); }
-.guide-copy p code { padding: .08em .35em; border-radius: .3rem; background: var(--surface-2); color: var(--ink); font: 500 .88em var(--mono); overflow-wrap: anywhere; }
+.guide-copy p code { padding: .08em .35em; border-radius: .3rem; background: var(--surface-2); color: var(--ink); font: 500 .88em var(--mono); overflow-wrap: break-word; }
.guide-copy a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lava-2); text-underline-offset: .2em; }
.guide-copy a:hover { color: var(--code); }
.guide-skip { position: fixed; left: .6rem; top: -10rem; z-index: 30; padding: .6rem 1rem; border-radius: .5rem; background: var(--ink); color: var(--night); }
@@ -63,3 +63,12 @@
.command-index ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.command-index summary, .command-index a { padding-block: .45rem; }
}
+
+.code-block { position: relative; }
+.code-block .lang { display: none; }
+.code-block .copy { position: absolute; top: .55rem; right: .55rem; z-index: 1; margin: 0; width: 2.2rem; height: 2.2rem; background: rgba(11, 13, 17, .85); }
+.code-block pre { padding-right: 3.4rem; }
+.not-found { min-height: 72vh; padding: calc(var(--header) + 5rem) 0 5rem; }
+.not-found h1 { margin: .6rem 0 .4rem; font: 600 clamp(2.4rem, 5vw, 4rem)/1.05 var(--sans); letter-spacing: -.045em; }
+.not-found p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
+.not-found nav { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
diff --git a/site/guide/Guide.vue b/site/guide/Guide.vue
index 42317c7..96f2699 100644
--- a/site/guide/Guide.vue
+++ b/site/guide/Guide.vue
@@ -9,7 +9,7 @@
npm install -g java-npm-cli
jpm --version
In PowerShell, if script execution is restricted, use npm.cmd and jpm.cmd. See the PowerShell commands for selecting Java in your shell.
-On Homebrew, brew install coderserio/tap/jpm installs the CLI and Node together. The formula has its own release version.
+On Homebrew, brew install coderserio/tap/jpm installs the CLI and Node together.
Create the project
jpm create hello-jpm --java 21 -y
cd hello-jpm
jpm jdk use 21
@@ -37,5 +37,5 @@ java -jar target/hello-jpm-0.0.1-SNAPSHOT.jar
- MIT licenseSitemap
+
diff --git a/site/public/app.js b/site/public/app.js
index f1e2a37..795f67b 100644
--- a/site/public/app.js
+++ b/site/public/app.js
@@ -45,6 +45,37 @@ for (const install of document.querySelectorAll('.install')) {
});
}
+// Code blocks in the guide and docs get a copy button. Lines starting with "$ " are commands; output is left out.
+if (navigator.clipboard?.writeText) {
+ const zh = document.documentElement.lang.startsWith('zh');
+ const icon = '