I use a Linux system at home (based on SuSE Linux) and have allocated an account just for writing. This account maintains a directory as a workspace for editing (and an RCS repository subdirectory as well) while I'm working on stories. I also have a public_html subdirectory which directly mimics my website contents and where updates are pushed from.
I use the make tool to handle pulling content from the RCS repository and managing the transition to readiness for the web site. A helper script exists to build the makefile from a list of files within the RCS repository and to translate the text files into HTML versions (albeit roughly).
The make file is then used to bring in new copies of the text files for constructing the HTML versions. (I've used the make file structures for so long that it's almost second nature to me. Which worries me, come to think of it. I've not been a developer for a while, though, so "make" is no longer the fastest word I can type.) The makefile contains a list of all of the files to be generated which simplifies matters enormously.
From this list of files I build my index.html file to link to all of my content. The .mkindex.sh script does this important task.
The .txt2html.sh script assumes the presence of SHS headers and also assumes that the input file is using blank lines to seperate the paragraphs.
There will be purists telling everybody that I should've used Perl instead of sh and awk and they're not wrong; But, if there's one thing I've learned about Unix (and it's deviants) is that there's usually at least 17 different ways to get a particular job done- and none of them is really "wrong".
Please note that as of 7/12/2003 I have been converting over to another tool I've written (in C) named fmtr which replaces the .txt2html.sh script.
If anyone is really interested in any of these scripts (or wants to make suggestions for improvement) please either e-mail me or post to alt.sex.stories.d ; I'll "steal" any ideas that sound good. :-)
KatieMcN has written a useful website generator of her own that is *much* more aesthetically pleasing even to me but sheer inertia and thick-headedness keeps me using my own tools. (Of course I'm used to them.)
I have not made any effort to see whether this will all work under CygWin or GNUWin2 environments; I'd have to be more interested in running Windoze at all in order to try. Sorry, I'm undermotivated. I've used Unix deviants for so long there's not much point in losing so much functionality.
Note: RCS is a "Revision Control System" which allows retention of previously edited text (albeit without it being present in the "current" version) so it acts as an archive containing all of the previous versions of a file. Unlike M$'s .doc file format, though, the extracted copy only contains the "current" version of the file. RCS uses the ci and co commands (check-in to save the latest changes, check-out to grab a current or previous version) to access the contents of an RCS archive file. I've gotten to like using it for C programs and various scripts, and, when I started writing, I used it as well simply because a major change didn't necessitate me making a new file (and keeping track of it); I can always hunt back through the history and pull out an old version if I need to steal the text for something else.
I have no idea why I'm letting anyone look at this crap. They ain't all that bad at showing how to generate HTML tables and forms, though, so I guess they're not all bad.