Skip to content

Commit

Permalink
Add info about the new build --clean option
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva authored Mar 22, 2022
1 parent 8a1baa3 commit efca81f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ All links use relative paths, so you can deploy to a subdirectory without any pr
If it is the first time building the site or if you have updated the source SCSS you also need to run `npm install && npm run dev` to build the frontend assets.

### Live preview
Use ` npm run watch` to watch the files for changes and start up a local dev server on port 3000 using Browsersync.
Use `npm run watch` to watch the files for changes and start up a local dev server on port 3000 using Browsersync.

### NPM Commands
See all commands in the documentation [Console Commands](https://hydephp.github.io/docs/docs/console-commands.html)
Expand All @@ -82,9 +82,8 @@ Hyde will automatically enable the CommonMark extension.
> However, Torchlight caches the response so this only affects the first time running the build, or if you update the page.
## Known Issues
Deleting Markdown posts does not delete the already compiled HTML files.
In a future update (coming soon™) the builder will remove unused files automatically.
For now, you can manually delete the files and then run the build command.
Hyde does not automatically delete compiled HTML files when the source files have been removed.
However, you can supply the `--clean` flag to remove all content in the `_site` directory when running the build command.

Currently, only top-level custom pages are supported. In the future, nested pages will be supported.
For example, _site/directory/page.html
Expand Down

0 comments on commit efca81f

Please sign in to comment.