Skip to content

Commit

Permalink
include css folder in output
Browse files Browse the repository at this point in the history
  • Loading branch information
ibokuri committed Mar 3, 2024
1 parent 721fedd commit c9fd046
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
SCD_DIR := scd
ROFF_DIR := man
HTML_DIR := html
CSS_DIR := css
OUTPUT_DIR := public

TEMPLATE_PAGE := $(HTML_DIR)/page.html
Expand Down Expand Up @@ -33,6 +34,7 @@ $(OUTPUT_DIR)/%.html: $(ROFF_DIR)/%.roff | $(OUTPUT_DIR)
$(eval filename := $(basename $(notdir $@)))
@echo $@
@cp $(HTML_DIR)/index.html $(OUTPUT_DIR)/
@cp $(CSS_DIR)/style.css $(OUTPUT_DIR)/
ifeq ($(UNAME_S),Linux)
@nroff -man $< \
| perl -pe 's/\x1b\[1m(.*?)\x1b\[(22|0)m/<b>\1<\/b>/gs' \
Expand Down
2 changes: 1 addition & 1 deletion html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel="stylesheet" href="../css/style.css">
<link rel="stylesheet" href="style.css">
<title>index</title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion html/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel="stylesheet" href="../css/style.css">
<link rel="stylesheet" href="style.css">
<title>{{title}}</title>
</head>
<body>
Expand Down

0 comments on commit c9fd046

Please sign in to comment.