- Install Dependencies
- Python deps, from root:
poetry install
- JS deps, from
someperson/theme
:npm i -D
- Python deps, from root:
Generally always use the scripts available in package.json
. Use poetry
and npm
as expected.
npm run start
will start up Webpack in watch mode and a local server will be available at 127.0.0.1:8000
. Content changes (articles, pages) and both Python and JS source changes will be watched and the live server will be automatically updated when those items change, generally. Some source changes will not be accounted for until the script is stopped and restarted. Those would include things like Webpack config changes, registering new Pelican plugin signals, among others.
npm run allcheck
and npm run allformat
will check and auto-fix syntax/lint issues in all available file types, respectively.
All linting and formatting is done via stylelint
. The stylelint
config can be found in .stylelintrc.json
.
npm run csscheck
and npm run cssformat
will check and auto-fix syntax/lint issues, respectively.
All linting and formatting is done via djlint
. The djlint
config can be found in pyproject.toml
.
npm run htmlcheck
and npm run htmlformat
will check and auto-fix syntax/lint issues, respectively.
All linting and formatting is done via eslint
. The eslint
config can be found in .eslintrc.yml
.
npm run jscheck
and npm run jsformat
will check and auto-fix syntax/lint issues, respectively.
All linting is done via pymarkdown
. The pymarkdown
config can be found in .pymarkdown
.
npm run mdcheck
to check lint issues.
There is no auto-formatting available for Markdown files.
All linting and formatting is done via ruff
. The ruff
config can be found in pyproject.toml
.
npm run pycheck
and npm run pyformat
will check and auto-fix syntax/lint issues, respectively.
Publishing is a three step process, all done locally.
- Use
npm run build
to build the static site. This will be placed indist/
at the root of the project. - Use
npm run commitpage
to commit the static site to thegh-pages
branch.- Some Person is a static site hosted on GitHub Pages.
gh-page
is the branch I've configured to host. - This command will take the current contents of
dist/
and commit them with an auto-generated commit message.
- Some Person is a static site hosted on GitHub Pages.
- Use
npm run publish
to push the updatedgh-pages
branch to GitHub. - [Automated] GitHub will publish to https://someperson.me.