getnikola / plugins

Extra plugins for Nikola
https://plugins.getnikola.com/
MIT License
57 stars 93 forks source link

[hierarchical_pages] nikola new_page doesn't work with hierarchical pages #350

Closed danshapero closed 3 years ago

danshapero commented 4 years ago

I'm using the suggested configuration for the hierarchical pages plugin, where PAGES = () and instead that configuration is moved into a HIERARCHICAL_PAGES variable. When I try to run nikola new_page, I get the following error message:

[2020-09-09T20:51:24Z] ERROR: new_page: Can't find a way, using your configuration, to create a page in format rest. You may want to tweak COMPILERS or PAGES in conf.py

I'm guessing this is because I've removed everything from PAGES, but when I restore to what it was before I get a bunch of errors because it collides with HIERARCHICAL_PAGES. I can always make a new page with the right metadata by hand, but it's more convenient to have the command for it.

ralsina commented 4 years ago

Indeed new_pages doesn't know anything about that plugin, we should add a note in its README

OTOH, new_page doesn't really do much, you could just create the pages manually.

On Thu, Sep 10, 2020 at 1:00 AM Daniel Shapero notifications@github.com wrote:

I'm using the suggested configuration for the hierarchical pages plugin, where PAGES = () and instead that configuration is moved into a HIERARCHICAL_PAGES variable. When I try to run nikola new_page, I get the following error message:

[2020-09-09T20:51:24Z] ERROR: new_page: Can't find a way, using your configuration, to create a page in format rest. You may want to tweak COMPILERS or PAGES in conf.py

I'm guessing this is because I've removed everything from PAGES, but when I restore to what it was before I get a bunch of errors because it collides with HIERARCHICAL_PAGES. I can always make a new page with the right metadata by hand, but it's more convenient to have the command for it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/getnikola/plugins/issues/350, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAMKZTMB7YQ7D5HJSKPU3SFBFM7ANCNFSM4RECHAKA .

ralsina commented 4 years ago

On a footnote, I don't understand at all what that plugin does from reading the README

On Thu, Sep 10, 2020 at 6:36 AM Roberto Alsina ralsina@kde.org wrote:

Indeed new_pages doesn't know anything about that plugin, we should add a note in its README

OTOH, new_page doesn't really do much, you could just create the pages manually.

On Thu, Sep 10, 2020 at 1:00 AM Daniel Shapero notifications@github.com wrote:

I'm using the suggested configuration for the hierarchical pages plugin, where PAGES = () and instead that configuration is moved into a HIERARCHICAL_PAGES variable. When I try to run nikola new_page, I get the following error message:

[2020-09-09T20:51:24Z] ERROR: new_page: Can't find a way, using your configuration, to create a page in format rest. You may want to tweak COMPILERS or PAGES in conf.py

I'm guessing this is because I've removed everything from PAGES, but when I restore to what it was before I get a bunch of errors because it collides with HIERARCHICAL_PAGES. I can always make a new page with the right metadata by hand, but it's more convenient to have the command for it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/getnikola/plugins/issues/350, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAMKZTMB7YQ7D5HJSKPU3SFBFM7ANCNFSM4RECHAKA .

felixfontein commented 4 years ago

@ralsina it not only allows to change the filename depending on the language, but also the path leading to that file.