retext-project / retext

ReText: Simple but powerful editor for Markdown and reStructuredText
GNU General Public License v2.0
1.88k stars 196 forks source link

HTML version and HTML template #163

Closed Sirtea closed 4 years ago

Sirtea commented 9 years ago

Hi,

Should be desirable to change html template and html version generator, so it could be viewed same as my webpage; perhaps, a checkbox to generate HTML5 and a config option pointing to a template file with static CSS files.

Regards

mitya57 commented 9 years ago

There was a tool for this in earlier ReText versions (it was called “webpages generator”), however I dropped that code because I didn't have time to maintain it, and because better alternatives exist.

You can try Sphinx for reStructuredText, MkDocs for Markdown, and also Pelican or Nikola for both formats.

Sirtea commented 9 years ago

Yes, I know pelican as it's the tool I'm using right now. The idea was to put the same html theme in retext, so the preview tab looked the same as once rendered in pelican.

For example, geany markdown plugin allows to specify base HTML with a placeholder, so the html generated can fit in there

Tamriel commented 8 years ago

My fork does the preview with Jekyll. However, I like the idea of switching to Pelican.

farseerfc commented 8 years ago

+1 for pelican. (Just because my blog is using it)

mitya57 commented 4 years ago

Being a static site generator is out of scope for ReText. There are many dedicated tools that do this job very well (see my comment above), we won't be able to compete with them anyway. With some scripting you can integrate them into ReText using the export extensions mechanism.

So I am closing this issue.