From f6e052b028f1878cd3390bf0fc8ddaaa59696397 Mon Sep 17 00:00:00 2001
From: Danh Phan
Date: Sun, 3 Mar 2024 10:03:27 -0600
Subject: [PATCH] Remove linux in Makefile and public/ dir from git
---
.github/workflows/deploy.yml | 2 +-
.gitignore | 1 +
Makefile | 15 -------
public/index.html | 21 ----------
public/style.css | 9 -----
public/test.html | 76 ------------------------------------
6 files changed, 2 insertions(+), 122 deletions(-)
delete mode 100644 public/index.html
delete mode 100644 public/style.css
delete mode 100644 public/test.html
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index fa3a090..f2e6f0e 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -21,7 +21,7 @@ jobs:
- name: Install Packages
run: |
- brew install scdoc
+ brew install scdoc nroff gsed
- name: Build
run: make build
diff --git a/.gitignore b/.gitignore
index 8f76e67..4de282f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
man/
+public/
diff --git a/Makefile b/Makefile
index 0dff0a7..1201cc2 100644
--- a/Makefile
+++ b/Makefile
@@ -10,8 +10,6 @@ SCD_FILES := $(wildcard $(SCD_DIR)/*.scd)
ROFF_FILES := $(patsubst $(SCD_DIR)/%.scd,$(ROFF_DIR)/%.roff,$(SCD_FILES))
HTML_FILES := $(patsubst $(ROFF_DIR)/%.roff,$(OUTPUT_DIR)/%.html,$(ROFF_FILES))
-UNAME_S := $(shell uname -s)
-
.PHONY: all clean roff build
all: build
@@ -35,18 +33,6 @@ $(OUTPUT_DIR)/%.html: $(ROFF_DIR)/%.roff | $(OUTPUT_DIR)
@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/\1<\/b>/gs' \
- | sed -r -e 's/ +<\/b>/<\/b> /g' \
- | sed -r -e 's/(,|\.|\?|\w) +(\w|<|[0-9])/\1 \2/g' \
- | perl -pe 's/\x1b\[4m(.*?)\x1b\[24m/\1<\/u>/gs' \
- | sed -r -e 's/DANH\.COMPUTER<\/u>\(7\)/DANH.COMPUTER(7)<\/a>/g' \
- | sed -r -e '/\{\{content\}\}/{r /dev/stdin' -e 'd;}' "$(TEMPLATE_PAGE)" \
- | sed -r -e 's/\{\{title\}\}/${filename}/' \
- > $@
-endif
-ifeq ($(UNAME_S),Darwin)
@nroff -man $< \
| perl -pe 's/\x1b\[1m(.*?)\x1b\[(22|0)m/\1<\/b>/gs' \
| gsed -E -e 's/ +<\/b>/<\/b> /g' \
@@ -56,7 +42,6 @@ ifeq ($(UNAME_S),Darwin)
| gsed -E -e '/\{\{content\}\}/{r /dev/stdin' -e 'd;}' "$(TEMPLATE_PAGE)" \
| gsed -E -e 's/\{\{title\}\}/${filename}/' \
> $@
-endif
$(ROFF_DIR):
@mkdir -p $(ROFF_DIR)
diff --git a/public/index.html b/public/index.html
deleted file mode 100644
index d1d3903..0000000
--- a/public/index.html
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
- index
-
-
-DANH.COMPUTER(7) Miscellaneous Information Manual DANH.COMPUTER(7)
-
-NAME
- Danh Phan
-
-ARCHIVES
- 2024‐03‐02 Test Blog Post
-
- DANH.COMPUTER(7)
-
-
-
diff --git a/public/style.css b/public/style.css
deleted file mode 100644
index a3aa8e8..0000000
--- a/public/style.css
+++ /dev/null
@@ -1,9 +0,0 @@
-body {
- font-family: monospace;
- max-width: 640px; /* Approximation for 80 characters per line, assuming 8px per character */
- padding: 20px;
- background-color: #ffffff;
- color: #000;
- white-space: pre-wrap; /* Allows text to wrap and preserve formatting */
- word-wrap: break-word; /* Ensures long words do not overflow */
-}
diff --git a/public/test.html b/public/test.html
deleted file mode 100644
index d563fc4..0000000
--- a/public/test.html
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-
-
-
-
- test
-
-
-DANH.COMPUTER(7) Miscellaneous Information Manual DANH.COMPUTER(7)
-
-NAME
- Test blog post.
-
-DESCRIPTION
- If you’re visiting this page, you’re likely here because you’re search‐
- ing for a random sentence. Sometimes a random word just isn’t enough,
- and that is where the random sentence generator comes into play. By in‐
- putting the desired number, you can make a list of as many random sen‐
- tences as you want or need. Producing random sentences can be helpful
- in a number of different ways.
-
- const std = @import("std");
-
- pub fn main() !void {
- std.debug.print("{s}n", .{"Hello, World!"});
- }
-
- (For writers) a random sentence. can help them get their creative
- juices flowing. Since the topic of the sentence is completely unknown,
- it forces the writer to be creative when the sentence appears. There
- are a number of different ways a writer can use the random sentence for
- creativity. The most common way to use the sentence is to begin a
- story. Another option is to include it somewhere in the story. A much
- more difficult challenge is to use it to end a story. In any of these
- cases, it forces the writer to think creatively since they have no idea
- what sentence will appear from the tool.
-
- For those writers who have. 23 writers’ block, this can be an excellent
- way to take a step to crumbling those walls. By taking the writer away
- from the subject matter that is causing the block, a random sentence
- may allow them to see the project they’re working on in a different
- light and perspective. Sometimes all it takes is to get that first sen‐
- tence down to help break the block.
-
- It can also be successfully used. as a daily exercise to get writers to
- begin writing. Being shown a random sentence and using it to complete a
- paragraph each day can be an excellent way to begin any writing ses‐
- sion.
-
- Random sentences can also spur creativity in other types of projects
- being done. If you are trying to come up with a new concept, a new idea
- or a new product, a random sentence may help you find unique qualities
- you may not have considered. Trying to incorporate the sentence into
- your project can help you look at it in different and unexpected ways
- than you would normally on your own.
-
- It can also be a fun way to surprise others. You might choose to share
- a random sentence on social media just to see what type of reaction it
- garners from others. It’s an unexpected move that might create more
- conversation than a typical post or tweet.
-
- These are just a few ways that one might use the random sentence gener‐
- ator for their benefit. If you’re not sure if it will help in the way
- you want, the best course of action is to try it and see. Have several
- random sentences generated and you’ll soon be able to see if they can
- help with your project.
-
- Our goal is to make this tool as useful as possible. For anyone who
- uses this tool and comes up with a way we can improve it, we’d love to
- know your thoughts. Please contact us so we can consider adding your
- ideas to make the random sentence generator the best it can be.
-
- 2024‐03‐03 DANH.COMPUTER(7)
-
-