ReText Webpages Generator (WpGen) is an useful tool for generating html pages to use on your web site.
It's possible to use WpGen directly from ReText 0.7+. Also, a command-line interface is available.
wpgen init to create neccesary files.index.mkd page is used as the home page.wpgen updateall to create ready-to-use HTMLs. You can also use wpgen update PAGENAME to process only one page.markdown-extensions.txt file of WpGen's working directory; separate them using a line break.To customize the look, edit the html/style.css file. You can also use some built-in CSS styles by entering wpgen usestyle %Style%. By default, WpGen comes with three themes: "Simple", "Default" (grey-colored) and "Blue".
To customize page layout, edit the template.html file.
Note: if command wpgen does not work (for example, if you have downloaded retext from here), replace it with the full path to wpgen.py file.
Also, if wpgen init doesn't work, run it from the wpgen/ directory first, and the copy pages/, html/ directories and template.html file to another directory.
Anonymous
2011-12-25
good
Anonymous
2012-01-13
The only thing in my File -> Directory menu is Show. Using version 2.1.4 of ReText
Dmitry Shachnev
2012-01-14
Which OS are you using? You should have WpGen installed in either WORKING_DIR/wpgen/wpgen.py or /usr/bin/wpgen.
Anonymous
2012-01-23
When exporting to HTML using WpGen, all the Markdown extensions are ignored. Could you modify the process to include your own export to HTML before sending it to WpGen, that way the extensions are processed? Would love to hear if that is possible.
Thanks, great software!
Dmitry Shachnev
2012-01-25
Added extensions support to WpGen, now you can specify them in markdown-extensions.txt file (updated this page with more information). I don't think it's worth using ReText's own extensions list, because sets of extensions may differ between websites.
Anonymous
2012-01-25
Great! thanks for the effort. I look forward to using this feature.