The cat once I lived with

Yosyuku's Diary

Sunday, 1st September 2024

I want to automate the process


I have nearly 400 markdown files exported from Shizuka Na Internet, which I have been manually converting into HTML files and uploading one by one to my ftp server.
But that is very tiring.
It was inefficient.

I talked to someone who told me that there is a tool called Pandoc that converts markdown files into HTML files.
I installed it from homebrew.

But here is the problem.
There are too many markdown files, so I should use Python to compile the list.

I asked someone who uses a Mac to take the time to try and install the new Python on the Mac.
However, I couldn't get it to build because of an error.

Back in the day, I had XCode on my Mac and was trying to compile and play with Hengband.
At the time I was in very bad shape.
All I could say at the time was, do it in a virtual environment.

It was speculated that perhaps XCode had changed something in the Mac configuration at the time, and that was causing the conflicts.

However, the Mac has always had the old Python.
I decided to create an invisible folder in my home folder and create a virtual environment there.
Today, I went as far as creating that folder.
I haven't activated it yet.

In general, building an environment seems to be more difficult than I thought.
I found out that I have no computer knowledge at all.
Today, I stumbled when I tried to install using asdf.
I uninstalled asdf.

The person who was trying to teach me and I were both disheartened.
The person said the person would write the scripts for me.
That was very helpful.
I promised to buy the person a shisha.

I tried to do a DuckDuckGo search at the beginning of the error text,
I couldn't find a good example in English.
One useful thing I learnt today is that you can use the up arrow key to go backwards and forwards through the commands you've just put in.
This is easy and error-free.

Once the list is created automatically, it would be nice if it could be passed to Pandoc, and the generated HTML file could be uploaded to the server more automatically.
But I need a Makefile to do that.I don't know anything about it.
I need to learn.

I'll use an ftp uploader for uploading, but I'd like it if I could at least convert the files to HTML.
In fact, there are a lot of processes I want to automate.
I'm getting greedy.

There's so much I need to know, but I don't know where to start.

I've always tinkered with my Mac too much.
I have a desire to clean it up once and for all.
But I'm stuck in the legacy of the past and can't do it.

In plain words, it's a hassle to back up, and what if there is a backup leak?
Today, I wasted the person's time unnecessarily.
I am sorry.

Previous Diary
Next Diary