Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Jul 4, 2024
1 parent 9b29e34 commit e6b083d
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DEPDIR=.deps
SRCDIR=c-ares.git
DOCSDIR=$(SRCDIR)/docs
DOCSDEST=docs
MAN2HTML=roffit --bare --mandir=$(DOCSDIR) --hrefdir=$(DOCSDEST)
MAN2HTML=roffit --bare --mandir=$(DOCSDIR) --hrefdir=/$(DOCSDEST)
MANPAGES_SRC=$(sort $(shell find $(DOCSDIR) -name "*.3"))
MANPAGES=$(addprefix $(DOCSDEST)/,$(sort $(notdir $(MANPAGES_SRC:.3=.html))))
MANPAGES_NAMES=$(sort $(notdir $(MANPAGES_SRC)))
Expand All @@ -19,7 +19,7 @@ $(DEPDIR): $(DOCSDEST)
mkdir -p $@

$(DEPDIR)/%.d: $(DOCSDIR)/%.3
sed -n -e 's|^\.so man[0-9]/\(.*\.[0-9]\).*|$(DOCSDEST)/$*.html: $(DOCSDIR)/\1|p' < $< > $@
sed -n -e 's|^\.so man[0-9]/\(.*\.[0-9]\).*|/$(DOCSDEST)/$*.html: $(DOCSDIR)/\1|p' < $< > $@

$(DOCSDEST)/%.html: $(DOCSDIR)/%.3 $(DEPDIR)/%.d
$(MAN2HTML) < $< > $(DOCSDEST)/$*.raw
Expand Down
40 changes: 40 additions & 0 deletions _sass/manpages.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
pre.level0, p.level0 {
padding-left: 2em;
}

pre.level1, p.level1 {
padding-left: 4em;
}

pre.level2, p.level2 {
padding-left: 6em;
}

span.emphasis {
font-style: italic;
}

span.bold {
font-weight: bold;
}

span.manpage {
font-weight: bold;
}

h2.nroffsh {
border-bottom: solid 1px black;
font-family: sans-serif;
}

span.nroffip {
font-weight: bold;
font-size: 120%;
font-family: monospace;
}

p.roffit {
text-align: center;
font-size: 80%;
}

5 changes: 5 additions & 0 deletions assets/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
---
@import "minima";
@import "manpages";

0 comments on commit e6b083d

Please sign in to comment.