Skip to content

Commit a1ee277

Browse files
Fixing build
Fixing build
1 parent 2002430 commit a1ee277

4 files changed

Lines changed: 17 additions & 10 deletions

File tree

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
# ExtractPDF4J Site (Vite + React + Tailwind)
1+
# ExtractPDF4J Site (GitHub Pages ready)
22

3-
This version builds directly into `/docs` so GitHub Pages can serve from the **main** branch.
3+
- Vite `base: './'`
4+
- Outputs to `/docs`
5+
- Includes `.nojekyll` in build (copied from `public/`)
46

5-
## Run locally
7+
## Run
68
npm install
79
npm run dev
810

9-
## Build to /docs
10-
npm run build
11+
## Build
12+
npm run build # -> ./docs
1113

1214
## Publish on GitHub Pages
13-
- Repo Settings → Pages → Source: **main** / **/docs**
14-
- Visit your URL: https://<username>.github.io/<repo>/
15+
- Push to repo
16+
- Settings → Pages → Source: **main** / **/docs**
17+
- Done

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "extractpdf4j-site",
33
"private": true,
4-
"version": "0.0.3",
4+
"version": "1.0.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src/components/ExtractPDF4JLanding.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import { Github, BookOpen, Download, Shield, Boxes, ScanLine, FileText, ChevronR
33

44
export default function ExtractPDF4JLanding(){
55
const [copied, setCopied] = useState(false)
6-
const maven = `<dependency>\n <groupId>com.extractpdf4j</groupId>\n <artifactId>extractpdf4j</artifactId>\n <version>1.0.0</version>\n</dependency>`
6+
const maven = `<dependency>
7+
<groupId>com.extractpdf4j</groupId>
8+
<artifactId>extractpdf4j</artifactId>
9+
<version>1.0.0</version>
10+
</dependency>`
711

812
const handleCopy = async () => {
913
try { await navigator.clipboard.writeText(maven); setCopied(true); setTimeout(()=>setCopied(false),1600) } catch {}

vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import react from '@vitejs/plugin-react'
44
export default defineConfig({
55
plugins: [react()],
66
base: './',
7-
build: { outDir: 'docs' } // ✅ output straight into /docs
7+
build: { outDir: 'docs' },
88
})

0 commit comments

Comments
 (0)