@opnpress/opnpress-cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -0
- package/dist/build.js +518 -0
- package/dist/cli.js +68 -0
- package/dist/config.js +210 -0
- package/dist/content.js +109 -0
- package/dist/init.js +45 -0
- package/dist/render.js +1975 -0
- package/dist/server.js +97 -0
- package/dist/utils.js +45 -0
- package/package.json +51 -0
- package/templates/.github/workflows/build-pages.yml +37 -0
- package/templates/.skills/README.md +6 -0
- package/templates/.skills/add-shortcode.md +18 -0
- package/templates/.skills/create-page.md +17 -0
- package/templates/.skills/deployment-checks.md +75 -0
- package/templates/.skills/integrations.md +6 -0
- package/templates/.skills/link-audit.md +17 -0
- package/templates/.skills/setup-integrations.md +84 -0
- package/templates/.skills/shortcodes.md +152 -0
- package/templates/.skills/site-audit.md +20 -0
- package/templates/.skills/theme-customization.md +17 -0
- package/templates/.skills/update-header-footer.md +15 -0
- package/templates/.skills/update-navigation.md +16 -0
- package/templates/.skills/update-page.md +16 -0
- package/templates/README.md +32 -0
- package/templates/content/pages/index.md +8 -0
- package/templates/navigation.yaml +20 -0
- package/templates/site.config.yaml +80 -0
- package/templates/theme.config.yaml +42 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Update Page
|
|
2
|
+
|
|
3
|
+
Use this skill when editing an existing page.
|
|
4
|
+
|
|
5
|
+
## What To Do
|
|
6
|
+
|
|
7
|
+
- preserve the page route unless a route change is explicitly requested
|
|
8
|
+
- update frontmatter and body together when metadata changes
|
|
9
|
+
- keep semantic headings in a clear order
|
|
10
|
+
- validate the build after editing
|
|
11
|
+
|
|
12
|
+
## Recommended Checks
|
|
13
|
+
|
|
14
|
+
- verify canonical and metadata fields still match the page intent
|
|
15
|
+
- verify no internal links were broken
|
|
16
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# OpnPress
|
|
2
|
+
|
|
3
|
+
This site was initialized with `opnPress`.
|
|
4
|
+
|
|
5
|
+
## Edit
|
|
6
|
+
|
|
7
|
+
- Update content in `content/pages/`.
|
|
8
|
+
- Adjust navigation in `navigation.yaml`.
|
|
9
|
+
- Adjust site metadata in `site.config.yaml`.
|
|
10
|
+
- Edit the templates in `templates/` if you want to change the default scaffold.
|
|
11
|
+
|
|
12
|
+
## Build And Run
|
|
13
|
+
|
|
14
|
+
- `opnPress build` generates the site output.
|
|
15
|
+
- `opnPress run` builds and starts a local preview server.
|
|
16
|
+
|
|
17
|
+
## Cloudflare Pages
|
|
18
|
+
|
|
19
|
+
The starter workflow publishes to Cloudflare Pages.
|
|
20
|
+
|
|
21
|
+
Add these repository secrets before the workflow can deploy:
|
|
22
|
+
|
|
23
|
+
- `CLOUDFLARE_API_TOKEN`
|
|
24
|
+
- `CLOUDFLARE_ACCOUNT_ID`
|
|
25
|
+
- `CLOUDFLARE_PROJECT_NAME`
|
|
26
|
+
|
|
27
|
+
The workflow uses those secrets when it deploys the generated `dist/` output.
|
|
28
|
+
|
|
29
|
+
## References
|
|
30
|
+
|
|
31
|
+
- Sample site: https://github.com/OpnPress/OpnPress
|
|
32
|
+
- Live site: https://opnpress.com/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
main:
|
|
2
|
+
- title: Home
|
|
3
|
+
url: /
|
|
4
|
+
# - title: About
|
|
5
|
+
# url: /about/
|
|
6
|
+
# - title: Services
|
|
7
|
+
# url: /services/
|
|
8
|
+
# - title: Locations
|
|
9
|
+
# url: /locations/
|
|
10
|
+
# - title: Insights
|
|
11
|
+
# url: /blog/
|
|
12
|
+
# - title: Integrations
|
|
13
|
+
# url: /integrations/
|
|
14
|
+
# - title: Contact
|
|
15
|
+
# url: /contact/
|
|
16
|
+
footer: []
|
|
17
|
+
|
|
18
|
+
# footer:
|
|
19
|
+
# - title: GitHub
|
|
20
|
+
# url: https://github.com/
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Site identity fields:
|
|
2
|
+
# - name: display name used in headers, footers, and metadata
|
|
3
|
+
# - domain: canonical public domain for generated URLs
|
|
4
|
+
# - description: site-wide fallback description
|
|
5
|
+
# - language: HTML lang attribute
|
|
6
|
+
# - theme: theme selector used by the template
|
|
7
|
+
# - logo: public asset path for the header brand mark
|
|
8
|
+
# - favicon: public asset path for browser tabs and touch icons
|
|
9
|
+
site:
|
|
10
|
+
name: OpnPress
|
|
11
|
+
domain: opnpress.local
|
|
12
|
+
# description: this is your site
|
|
13
|
+
# logo: /images/OpnPressLogo.png
|
|
14
|
+
# favicon: /images/OpnPressFavi.png
|
|
15
|
+
|
|
16
|
+
# The rest of the site config is optional and can be uncommented as needed.
|
|
17
|
+
|
|
18
|
+
# SEO is only for crawl and page-level preview defaults.
|
|
19
|
+
# seo:
|
|
20
|
+
# defaultImage: /images/og.png
|
|
21
|
+
|
|
22
|
+
# Social identity metadata lives here, not under SEO.
|
|
23
|
+
# socials:
|
|
24
|
+
# twitter: opnpress
|
|
25
|
+
# github: https://github.com/OpnPress
|
|
26
|
+
# facebook: https://facebook.com/OpnPress
|
|
27
|
+
# website: https://opnpress.com
|
|
28
|
+
|
|
29
|
+
# Branding toggles:
|
|
30
|
+
# branding:
|
|
31
|
+
# poweredByOpnPress: true
|
|
32
|
+
|
|
33
|
+
# Deployment target for the GitHub Actions workflow.
|
|
34
|
+
# deployment:
|
|
35
|
+
# provider: cloudflare-pages
|
|
36
|
+
# cloudflare:
|
|
37
|
+
# projectName: opnpress
|
|
38
|
+
# productionBranch: master
|
|
39
|
+
|
|
40
|
+
# Integrations and reusable contact blocks are rendered from markdown shortcodes.
|
|
41
|
+
# integrations:
|
|
42
|
+
# contactForm:
|
|
43
|
+
# provider: formspree
|
|
44
|
+
# action: https://formspree.io/f/example
|
|
45
|
+
# buttonLabel: Send message
|
|
46
|
+
# shareableLinks:
|
|
47
|
+
# enabled: true
|
|
48
|
+
# companyInfo:
|
|
49
|
+
# name: OpnPress
|
|
50
|
+
# tagline: Sites built by AI, for AI.
|
|
51
|
+
# logo: /images/OpnPressLogo.png
|
|
52
|
+
# address: 200 N Clark St, Chicago, IL 60601
|
|
53
|
+
# mapUrl: https://maps.google.com/?q=200+N+Clark+St+Chicago+IL+60601
|
|
54
|
+
# phone: +1 (312) 555-0100
|
|
55
|
+
# email: hello@opnpress.com
|
|
56
|
+
# hours: Mon-Fri 9am-5pm
|
|
57
|
+
# website: https://opnpress.com
|
|
58
|
+
# showInHeader: false
|
|
59
|
+
# showInFooter: false
|
|
60
|
+
# contactLinks:
|
|
61
|
+
# email: hello@opnpress.com
|
|
62
|
+
# phone: +1 (312) 555-0100
|
|
63
|
+
# website: https://opnpress.com
|
|
64
|
+
# mapUrl: https://maps.google.com/?q=200+N+Clark+St+Chicago+IL+60601
|
|
65
|
+
# address: 200 N Clark St, Chicago, IL 60601
|
|
66
|
+
# hours: Mon-Fri 9am-5pm
|
|
67
|
+
# showIcons: true
|
|
68
|
+
# showLabels: true
|
|
69
|
+
# showInHeader: false
|
|
70
|
+
# showInFooter: true
|
|
71
|
+
# bookingCalendar:
|
|
72
|
+
# provider: calendly
|
|
73
|
+
# embedUrl: https://calendly.com/
|
|
74
|
+
# buttonLabel: Book a call
|
|
75
|
+
# analytics:
|
|
76
|
+
# provider: google-analytics
|
|
77
|
+
# measurementId: G-EXAMPLE
|
|
78
|
+
# maps:
|
|
79
|
+
# provider: google-maps
|
|
80
|
+
# embedUrl: https://www.google.com/maps?q=Chicago&output=embed
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Theme tokens for the starter site.
|
|
2
|
+
# The built-in theme defaults cover all of these values if you omit them.
|
|
3
|
+
|
|
4
|
+
# colors:
|
|
5
|
+
# - primary: main brand color
|
|
6
|
+
# - accent: secondary highlight color
|
|
7
|
+
# - background: page background color
|
|
8
|
+
# - surface: card and section surface color
|
|
9
|
+
# - text: main body text color
|
|
10
|
+
# - muted: secondary text color
|
|
11
|
+
# - border: default border color
|
|
12
|
+
colors:
|
|
13
|
+
primary: "#1d3557"
|
|
14
|
+
accent: "#c86b3c"
|
|
15
|
+
background: "#f5efe6"
|
|
16
|
+
surface: "#fffaf3"
|
|
17
|
+
text: "#15202b"
|
|
18
|
+
muted: "#5e6b76"
|
|
19
|
+
border: "rgba(21, 32, 43, 0.12)"
|
|
20
|
+
|
|
21
|
+
# backgrounds:
|
|
22
|
+
# - page: full-page background treatment
|
|
23
|
+
backgrounds:
|
|
24
|
+
page: "radial-gradient(circle at top, rgba(200, 107, 60, 0.12), transparent 34%), linear-gradient(180deg, #f5efe6 0%, #fffaf3 100%)"
|
|
25
|
+
|
|
26
|
+
# fonts:
|
|
27
|
+
# - heading: font stack for headings
|
|
28
|
+
# - body: font stack for body copy
|
|
29
|
+
# - mono: font stack for code and data
|
|
30
|
+
fonts:
|
|
31
|
+
heading: "Georgia, serif"
|
|
32
|
+
body: "Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"
|
|
33
|
+
mono: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"
|
|
34
|
+
|
|
35
|
+
# sizing:
|
|
36
|
+
# - contentWidth: max width for readable content
|
|
37
|
+
# - radius: default card and element radius
|
|
38
|
+
# - spacing: default spacing unit
|
|
39
|
+
sizing:
|
|
40
|
+
contentWidth: "72rem"
|
|
41
|
+
radius: "24px"
|
|
42
|
+
spacing: "1rem"
|