wm: doc

Download patch

ref: cdbfb7b321302a4ae802375daff4651bc9665693
parent: 07a29dd24167bf69642dc462be12a64c156d2536
author: mkf <mkf@cloud9p.org>
date: Sat Sep 14 10:49:47 EDT 2024

contributing.ms: prototype

--- /dev/null
+++ b/contributing.ms
@@ -1,0 +1,57 @@
+.TL
+How to write documents
+
+.AU
+mkf
+
+.AB
+In this document, we explain how to
+write troff documents using
+.I ms
+macro, ensuring they look as they should
+and sending it using git.
+.AE
+
+.SH
+Writing documents
+.LP
+These documents are written in a markup language called troff.
+troff these days is largely used for papers and manual pages.
+to see what a troff document looks like, you can see this file's source
+.ihtml a <a href="https://cloud9p.org/wm/doc/HEAD/files/contributing.ms/f.html>
+(contributing.ms)
+.ihtml a <a>
+We use ms macro for our documents, see ms(6) man page for more info.
+.SH
+Checking documents
+.LP
+Now you have written your document. It's time to check if it looks good
+and if it has spelling issues. Assuming your document is named
+.CW foo.ms ,
+You can check spelling issues with:
+.P1
+; deroff -ms foo.ms | spell
+.P2
+This is likely to have many false positives, ignore them as you wish.
+afterwards, to see how resulting document looks like, run the following:
+.SM
+.SH
+pdf/ps
+.P1
+; troff -ms foo.ms | page
+.P2
+.LP
+This will run page document viewer to proof read the result, which needs graphics.
+.SM
+.SH
+text
+.P1
+; nroff -ms foo.ms
+.P2
+.SH
+Sending the documents
+.LP
+Now, assuming your documents look good and all, you need to upload it.
+If you push access, you can send your documents directly,
+otherwise, ask someone with commit access and send them a patch.
+to send a patch in UNIX like systems: