Skip to content

Commit

Permalink
remove AutoSummary, add --no-aftermath
Browse files Browse the repository at this point in the history
  • Loading branch information
charludo committed Jan 16, 2025
1 parent 64fbcec commit 9f3e472
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 193 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
- nothing

## [1.2.2] - 2025-04-16
### Added
- `--no-aftermath` / `-n` option for `barely rebuild` to skip aftermath question

### Removed
- AutoSummary plugin, due to packaging difficulties and unidiomatic installation

## [1.2.1] - 2025-04-16
### Added
- Nix Flake containing both a dev shell and the barely package
Expand Down Expand Up @@ -121,7 +128,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.9.0] - 2021-06-19
Initial beta release

[Unreleased]: https://github.com/charludo/barely/compare/v1.2.1...HEAD
[Unreleased]: https://github.com/charludo/barely/compare/v1.2.2...HEAD
[1.2.2]: https://github.com/charludo/barely/compare/v1.2.1...v1.2.2
[1.2.1]: https://github.com/charludo/barely/compare/v1.2.0...v1.2.1
[1.2.0]: https://github.com/charludo/barely/compare/v1.1.4...v1.2.0
[1.1.4]: https://github.com/charludo/barely/compare/v1.1.2...v1.1.4
Expand Down
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ But most of the time, you will want at least a little more functionality. That's
barely comes with 10 plugins by default:

- [AutoSEO](https://github.com/charludo/barely/blob/main/docs/plugins/autoseo.md)
- [AutoSummary](https://github.com/charludo/barely/blob/main/docs/plugins/autosummary.md)
- [Collections](https://github.com/charludo/barely/blob/main/docs/plugins/collections.md)
- [Forms](https://github.com/charludo/barely/blob/main/docs/plugins/forms.md)
- [Gallery](https://github.com/charludo/barely/blob/main/docs/plugins/gallery.md)
Expand Down Expand Up @@ -297,6 +296,13 @@ Github Project Link: [https://github.com/charludo/barely](https://github.com/cha
## Changelog
Most recent entries:

## [1.2.2] - 2025-04-16
### Added
- `--no-aftermath` / `-n` option for `barely rebuild` to skip aftermath question

### Removed
- AutoSummary plugin, due to packaging difficulties and unidiomatic installation

## [1.2.1] - 2025-04-16
### Added
- Nix Flake containing both a dev shell and the barely package
Expand All @@ -313,14 +319,6 @@ Most recent entries:
#### Added
- new "blog" blueprint - read about it here: [https://notablog.io/blog/2022-04-01-building-a-blog-with-barely/](https://notablog.io/blog/2022-04-01-building-a-blog-with-barely/)

### [1.1.2] - 2022-04-05
#### Added
- "publish: false" in a page can disable rendering of a page. Can also be used as a global toggle
- Collections: added ORDER_KEY and ORDER_REVERSE options. Can be used to configure the order of posts within collection pages.

#### Changed
- Collections: "created" timestamps take precedence over "edited" timestamps

See the full changelog [here](https://github.com/charludo/barely/blob/main/CHANGELOG.md)

<!-- MARKDOWN LINKS & IMAGES -->
Expand Down
1 change: 0 additions & 1 deletion barely/blueprints/default/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ But most of the time, you will want at least a little more functionality. That's
barely comes with 10 plugins by default:

- [AutoSEO](https://github.com/charludo/barely/blob/main/docs/plugins/autoseo.md)
- [AutoSummary](https://github.com/charludo/barely/blob/main/docs/plugins/autosummary.md)
- [Collections](https://github.com/charludo/barely/blob/main/docs/plugins/collections.md)
- [Forms](https://github.com/charludo/barely/blob/main/docs/plugins/forms.md)
- [Gallery](https://github.com/charludo/barely/blob/main/docs/plugins/gallery.md)
Expand Down
5 changes: 3 additions & 2 deletions barely/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ def live(verbose):
@click.option("--light", "-l", help="don't clean existing files, and skip image rebuilds", is_flag=True)
@click.option("--partial", "-p", help="specify file or directory to rebuild instead of devroot", default="devroot")
@click.option("--start", "-s", help="after rebuilding, start the web server", is_flag=True)
@click.option("--no-aftermath", "-n", help="after rebuilding, exit without aftermath", is_flag=True)
@click.pass_context
def rebuild(ctx, start, partial, light):
def rebuild(ctx, start, partial, light, no_aftermath):
"""(re)build the entire project"""
init()

Expand All @@ -240,7 +241,7 @@ def rebuild(ctx, start, partial, light):

if start:
ctx.invoke(live)
else:
elif not no_aftermath:
aftermath(PM)


Expand Down
Empty file.
150 changes: 0 additions & 150 deletions barely/plugins/content/AutoSummary/autosummary.py

This file was deleted.

4 changes: 1 addition & 3 deletions docs/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ barely knows three kinds of plugins:
These look out for certain file extensions, which they will further process than barely normally would. Some also perform some additional tasks right after you've finished editing the project.

barely ships with:
- [AutoSeo](plugins/autoseo.md): generate SEO-, OpenGraph- and Twitter-relevant tags from a very minimal required information set. Can also generate `robots.txt` and `sitemap.txt` files. Works great with AutoSummary!

- [AutoSummary](plugins/autosummary.md): make use of the NLTK to generate a short summary of a page. Can also extract a list of most relevant keywords
- [AutoSeo](plugins/autoseo.md): generate SEO-, OpenGraph- and Twitter-relevant tags from a very minimal required information set. Can also generate `robots.txt` and `sitemap.txt` files.

- [Collections](plugins/collections.md): add a page to Collections or request the contents of one (or multiple). Can also generate Collection overview pages. These are barelys version of categories.

Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/autoseo.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AutoSEO

Type: `content`
Type: `content`
Enabled by default: `true`

Generate all the pesky meta-tags from a very limited configuration. This plugin can save you a lot of time, and make your pages much more appealing to Google & Co.
Expand All @@ -21,7 +21,7 @@ twitter_creator: what twitter user to attribute content to. better specified on
**ALL** of these are optional.
Then make sure you have a `title` specified in the meta of your pages (`site_name` will be used as fallback). Either provide a summary, a description, or let the AutoSummary generate it, as well as extract relevant keywords.
Then make sure you have a `title` specified in the meta of your pages (`site_name` will be used as fallback). Either provide a summary, or a description.

You can specify a title_image, if none is found, the plugin will extract one from your markdown; if none is found again, it will look for one in the page's directory in the devroot.

Expand Down
21 changes: 0 additions & 21 deletions docs/plugins/autosummary.md

This file was deleted.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
{
packages.default = pkgs.python312Packages.buildPythonPackage rec {
pname = "barely";
version = "1.2.1";
version = "1.2.2";

src = pkgs.fetchPypi {
inherit pname version;
hash = "sha256-w3rkFiCJIwoBOQ+t1npfeJWcwB/8wCZC8bcP3wLms1U=";
hash = "sha256-/gliqfkPwnhZilFXltNXuOjQnJoJ9u0SnktqlLmRfTo=";
};


Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

setuptools.setup(
name="barely",
version="1.2.1",
version="1.2.2",
description="barely is a lightweight, but highly extensible static site generator written in pure python.",
long_description=README,
long_description_content_type="text/markdown",
keywords=["static site generator", "jinja2", "markdown", "web development", "blog"],
url="https://notablog.io",
download_url="https://github.com/charludo/barely/archive/refs/tags/v1.2.1.tar.gz",
download_url="https://github.com/charludo/barely/archive/refs/tags/v1.2.2.tar.gz",
author="Charlotte Hartmann Paludo",
author_email="[email protected]",
license="GPL-3.0",
Expand Down

0 comments on commit 9f3e472

Please sign in to comment.