Removed some stuff

This commit is contained in:
2024-09-26 19:59:42 +02:00
parent 9b07aa9493
commit cfa8a7c2af
3 changed files with 3 additions and 27 deletions

View File

@@ -6,19 +6,7 @@ I've been thinking a long time about having a place to publicly publish things.
Sure there's a lot of static site generators out there and a couple of them could probably be configured to work the way i want it to. However to me there is a joy in using things that I have built on my own so first i will try building something from scratch.
It will be very simple, atleast in the beginning.
A list of directories will represent individual posts.
Each directory will have a markdown file, asset directory and if needed some picture inside of there as well.
A node script will traverse the directories, keeping track of the name of the post, its markdown content and the assets referenced.
Then the markdown will be converted into html and placed in a post html template that i can use to have common layouts and styling between each every post.
All posts will be copied to an output directory together with an index file that has links to all my posts.
Will it be pretty?
Probably not.
But it's a start!
Oh and I need some test markdown symbols to practice on..
Here's some markdown for me to practice on.
# H1

View File

@@ -34,7 +34,7 @@ We pass the first line to the symbol, alongside the line feed.
The symbol can now decide if it's happy with the one line it claimed or if it wants to continue reading from the line feed.
Symbols can peek at the line feed, the line is not removed unless it is claimed by the symbol.
In this case the heading is a single line symbol, so the symbol strips the line that it claimed from the "#" heading syntax and saves the rest to render as a heading later.
The static symbol instance now returns an instance of a header symbol which we can save to a list for later rendering.
The static symbol function now returns an instance of a header symbol which we can save to a list for later rendering.
Calling render on a symbol should result in a html string composed of itself plus any child symbols recursivly.
@@ -50,7 +50,7 @@ Some **bold** text and then some _cursive_ text
This is not only a text line but it has both bold and cursive text.
So in addition to parsing the markdown files line by line (stage 1), I implemented stage 2 processing with the purpose of expanding the identified elements into child elements. So when a text row element containing the text in the example above is requested to peform its stage 2 processing it will take its text and run it once more through the stage 1 processing to divide it into new symbols. It then calls stage 2 processing of all its new children to make sure every element has been processed.
So in addition to parsing the markdown files line by line which i will refer to as stage 1, I implemented stage 2 processing with the purpose of expanding the identified elements into child elements. So when a text row element containing the text in the example above is requested to perform its stage 2 processing it will take its text and run it once more through the stage 1 processing to divide it into new symbols. It then calls stage 2 processing of all its new children to make sure every element has been processed.
In the end we should have gone from `TextLine` to `PlainText, Bold, PlainText , Italic, Plaintext`.

View File

@@ -1,12 +0,0 @@
Let's put a pin in developing the markdown parser for a little while.
The last couple of years i've been using a time management technique called the pomodoro technique. It's very simple, you decide on a task, you put a 25 min timer to focus on that task, when the time is up you take 5 min to do something else, then you focus for another 25 minutes. You do this a couple of rounds then you take a longer break.
It's simple and it works for me. It especially helps me to remember to do my stretching to avoid pain from monotonous work.
tbw
digital timer
physical timer
project