Skip to content

docs(deployment): add a direct folder upload example - #190

Open
f-o-x11 wants to merge 1 commit into
next-theme:masterfrom
f-o-x11:docs/deploy-upload-folder
Open

f-o-x11 wants to merge 1 commit into
next-theme:masterfrom
f-o-x11:docs/deploy-upload-folder

Conversation

@f-o-x11

@f-o-x11 f-o-x11 commented Nov 25, 2026

Copy link
Copy Markdown

PR Checklist

  • The changes have been tested (see "How to use?" below).

PR Type

  • Documentation.

What is the current behavior?

The Local Deployment part of getting-started/deployment.md only covers hexo g -d through a deployer plugin. Every other host on the page is set up through CI.

Issue resolved: none, this is a small docs addition.

What is the new behavior?

There's now one paragraph and a three-line example under Local Deployment. It covers uploading the generated public folder straight to a static host, with no deployer plugin or Git repository, using deed.page as the example. It also says to set url in _config.yml first so permalinks point to the published site. Then it notes what you need to know to update the site later: the token is shown once and goes in an Authorization: Bearer header, and uploading again without it returns 409. Finally it gives the 4 MB per-upload cap and the Free-plan badge, with a link to https://deed.page/docs.

Disclosure: this PR comes from the deed.page team. If you'd prefer the page not to name a specific host here, or want it worded differently or moved, I'm happy to change it, or you can just close it. We also maintain an agent skill for publishing to deed.page, which asks the user before it publishes anything: https://github.com/f-o-x11/deed-page-skill

  • Link to demo site with this changes: https://next-docs-e2e-02d582.deed.page/ (a fresh hexo init blog on hexo-theme-next 8.29.0, published with the commands from this PR)
  • Screenshots with this changes: the docs page itself only gains a paragraph and a code block, and both render normally in hexo generate output.

How to use?

I tested the steps in a fresh hexo init blog (Hexo 8, hexo-theme-next 8.29.0 from npm, theme: next, plus one about page). url was set to the deed.page address, and I ran exactly:

$ hexo clean && hexo g
$ tar -C public -czf site.tar.gz .
$ curl -T site.tar.gz "https://deed.page/v1/sites?slug=your-blog"
  • The upload returned 201 and published all 50 generated files (about 43 KB as a tarball).
  • /, /about/, /archives/ and the post page returned 200 as text/html. css/main.css, js/next-boot.js and images/logo.svg came back with the right content types, and /about returned a 308 to /about/.
  • The generated permalinks and canonical links used the deed.page URL from url.
  • In headless Chrome the page rendered with NexT's Muse layout, fonts and code blocks.
  • Uploading again with the token as Authorization: Bearer updated the same slug to v2. The same upload without the token returned 409.

Docs repo checks:

  • npm run lint (markdownlint) gave the same output before and after this change. deployment.md still shows only its two existing findings (MD001 on line 6 and one image without alt text), and nothing new.
  • npx hexo generate built the site with no warnings or errors, and the new paragraph shows up in public/docs/getting-started/deployment.html.

@netlify

netlify Bot commented Nov 25, 2026

Copy link
Copy Markdown

👷 Deploy request for theme-next pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 9c5d5f4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant