Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to add custom directives #19

Open
espeed opened this issue Jan 27, 2012 · 1 comment
Open

Add the ability to add custom directives #19

espeed opened this issue Jan 27, 2012 · 1 comment

Comments

@espeed
Copy link

espeed commented Jan 27, 2012

With Sphinx you can use custom directives by including it in your conf.py extensions list (https://bitbucket.org/birkenfeld/sphinx/src/52ee02818d19/doc/conf.py).

You put the custom directives in a module in your _ext directory (next to the_template dir), and then the Sphinx Config class complies conf.py (https://bitbucket.org/birkenfeld/sphinx/src/52ee02818d19/sphinx/config.py#cl-184).

This simple change would make rstblog extendable without having to fork the code.

@dbrgn
Copy link

dbrgn commented Jun 13, 2012

There already is such a feature. Add your directive module to rstblog/modules and include it in your config.yml.

For an example, see #24.

Edit: Ah, you're talking about including them without forking... Sorry, ignore my comment :) But #20 might be a way to solve your issue.

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

No branches or pull requests

2 participants