wm: doc

Download patch

ref: b45a8e832603ee4260bd61cd9e9567e1b4c39828
parent: 0b820460eb6f0fb29f7f464bbef39c567805cd18
parent: cdbfb7b321302a4ae802375daff4651bc9665693
author: jrmu <jrmu@cloud9p.org>
date: Sat Sep 14 12:05:23 EDT 2024

Merge formatting changes by mkf and contributing guidelines

--- /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:
--- a/ircd.ms
+++ b/ircd.ms
@@ -1,2 +1,7 @@
+.TL
+ircd
+.LP
+.P1
 ; hub
 ; ircd tcp!*!6667
+.P2