New build architecture
Release Highlights
- Makefiles updated with
.PHONYtargets - Pre-requisites of a target are now ordered steps in the recipe of that target (because the pre-requisites/dependencies do not define an explicit order when written as
target: pre1 pre2. This does not guarantee thatpre1is built beforepre2) - A common makefile (
common.mk) provided for notes directories to avoid code duplication - Manual writing of individual
.mkfiles no longer required.Makefileautogenerates it now (seegen_temp_mktarget inMakefile) - Add
<header>on all pages to link back to main page
Build Instructions
Prebuilt repo
- Download archive
notes-1.0.tar.gzornotes-1.0.zipfrom the Assets - Extract the downloaded archive
- To see it running ootb as it is, just open
index.htmlin browser
Steps to add new notes directory and then build
-
You will need binary for
lowdown. Build from here. -
You will require binary for
sass. Download from here. -
Suppose you want to add a new notes dir (say) -
kawaii_tech.
Then this dir (kawaii_tech) should have the following structure and mandatory files (notice the naming of the files too) -kawaii_tech/kawaii_tech_notes.md(your notes in Markdown format)
-
Now in the
Makefile(of the project's root dir) add this dir toDIRS_UNSORTEDvariable -
Run
makefrom project's root dir to generate allhtmlandcssfiles -
Open
index.htmlin browser
Some points to consider while writing notes
- When adding new
.md(notes) files, make sure that the fenced code blocks have a language set like -
```cpp
#include <iostream>
using namespace std;
int main()
{
return 0;
}
```
This will make the <code> tag (in the generated html file) to have class set like -
<code class="language-cpp">