|
1 | | -markdown-notes |
| 1 | +<img src="./images/logo.png" style="margin-left: auto; margin-right: auto; display: block;"> |
| 2 | + |
| 3 | +---- |
| 4 | + |
| 5 | +<h5 style="text-align: center;">markdown-notes</h1> |
| 6 | + |
| 7 | +<h4 style="text-align: center;">Templates for your Note Taking Markdown Workflow</h3> |
| 8 | + |
| 9 | +## Contents |
| 10 | + |
| 11 | +- [Contents](#contents) |
| 12 | +- [Overview](#overview) |
| 13 | +- [Installation (CLI)](#installation-cli) |
| 14 | +- [Using](#using) |
| 15 | + - [1. Templates Folder](#1-templates-folder) |
| 16 | + - [2. CLI app](#2-cli-app) |
| 17 | +- [Examples](#examples) |
| 18 | +- [Templates](#templates) |
| 19 | +- [Themes](#themes) |
| 20 | + - [Default Theme](#default-theme) |
| 21 | +- [Contributing](#contributing) |
| 22 | +- [License](#license) |
| 23 | + |
| 24 | +## Overview |
| 25 | + |
| 26 | +**Based on some effective study methods (Feynman Technique, Flashcards, Cornell Note Taking Method, Charting Method, Split Page Method etc...), these markdown templates are designed to help on creating better study materials, faster and directly from your computer. Only markdown or html/css skills are required. The styles fully customizable!** |
| 27 | + |
| 28 | +All the working files are contained in these folders: |
| 29 | +* [Templates](templates/) - for the markdown templates |
| 30 | +* [Themes](themes/) - for the styling themes |
| 31 | + |
| 32 | +> **Important** |
| 33 | +> The extension [Markdown Preview Enhanced](https://shd101wyy.github.io/markdown-preview-enhanced/#/), available for VSCode and Atom is required, not only for the notes' styled preview but also for a better html export. |
| 34 | +
|
| 35 | +This is a two versions package: |
| 36 | + |
| 37 | +1. If you do want to install the CLI app, a simple command line interface that creates the files on your current directory, follow the instructions in the next [section](#installation-cli). |
| 38 | +2. Else, if you only need the templates, copy the files you need (a .md and the corresponding .less file, ex: [note.md](templates/note.md) and [note-style.less](themes/default/note-style.less)), from the previously mentioned folders, paste them wherever you want and start editing them. A Pro Tip is using your machine *Templates* or *Models* folder for a faster template creation. |
| 39 | + |
| 40 | + |
| 41 | +## Installation (CLI) |
| 42 | + |
| 43 | +> `node` and `npm` are required to be installed on your system. |
| 44 | +
|
| 45 | +First, `git clone` this repo. Then go to the downloaded folder and run |
| 46 | + |
| 47 | +`$ npm install` |
| 48 | +to install the dependencies |
| 49 | + |
| 50 | +`$ chmod +x md-notes.js` |
| 51 | +to make the program executable |
| 52 | + |
| 53 | +`$ npm link` |
| 54 | +or |
| 55 | +`$ sudo npm link` |
| 56 | +to create a bin link and make it possible to call the program globally on your machine. |
| 57 | + |
| 58 | +If everything went with no errors, a successful installation was accomplished. |
| 59 | +So... Start [using](#cli-app) it! |
| 60 | + |
| 61 | +## Using |
| 62 | + |
| 63 | +... Having everything set up, |
| 64 | + |
| 65 | +### 1. Templates Folder |
| 66 | + |
| 67 | +If these files are on your machine *Templates* folder, you can easily spawn them on any folder using your file manager context menu. |
| 68 | + |
| 69 | +### 2. CLI app |
| 70 | + |
| 71 | +Else, if you installed the CLI app version, then you need only to run |
| 72 | + |
| 73 | +`$ md-notes` |
| 74 | + |
| 75 | +on your terminal in the desired directory and choose the suitable options. |
| 76 | + |
| 77 | +---- |
| 78 | +Finally, open your Text Editor (VSCode or Atom) to start crafting and visualizing your markdown notes. |
| 79 | + |
| 80 | +Search for a *Markdown Preview Enhanced* **Preview Button** on the top corners of your editor to open the viewer tab. Search for the extension shortcuts or buttons to export your notes to html, for then opening it on your browser and printing them to pdf. |
| 81 | + |
| 82 | +> See [Themes](#themes) for an overview of the expected visual results |
| 83 | +
|
| 84 | +## Examples |
| 85 | + |
| 86 | +There is a [folder](examples/) containing examples of these note templates. They were also exported to html, using the recommended VSCode/Atom extension, and then printed to pdf, directly from the browser. |
| 87 | + |
| 88 | +## Templates |
| 89 | + |
| 90 | +This folder contains all the available markdown templates to start creating and editing the notes. They may be very similar, but all of them must represent the initial header with all the necessary info for linking the styles and start writing the notes. |
| 91 | + |
| 92 | +> Every template must have a corresponding .less file in every available theme, following the current naming and structure. |
| 93 | +
|
| 94 | +To help on creating/editing the notes, they may provide some basic code that can be commented and/or urls for some online documentation. |
| 95 | + |
| 96 | +The global font family is also specified in these headers. |
| 97 | + |
| 98 | +## Themes |
| 99 | + |
| 100 | +Currently, there is only one featured theme, the [Default Theme](themes/default/). |
| 101 | +More customizations may come in the future. |
| 102 | + |
| 103 | +### [Default Theme](themes/default/) |
| 104 | + |
| 105 | +Some aspects/components of this theme are: |
| 106 | +||| |
| 107 | +--|-- |
| 108 | +| h1 or # |  | |
| 109 | +| h2 or ## |  | |
| 110 | +| h3 or ### |  | |
| 111 | +| h4 or #### |  | |
| 112 | +| h5 or ##### | Similar to h4, but smaller. | |
| 113 | +| h6 or ###### |  This will appear with a grey background color when previewing or in html. | |
| 114 | +| blockquote or > |  | |
| 115 | +| table |  | |
| 116 | +| hr or ---- | Not displayed. It is used for page breaks when printing to pdf. | |
| 117 | + |
| 118 | +## Contributing |
| 119 | + |
| 120 | +**Contributions are all welcome!** |
| 121 | + |
| 122 | +New templates and new themes are appreciated, as well as new features for expanding this idea or make it better, more functional. |
| 123 | + |
| 124 | +Whenever a new template is added, the corresponding style for every suitable theme should be also created. Follow the existing example for the Default Theme. |
| 125 | + |
| 126 | +## License |
| 127 | + |
| 128 | +Licensed under the [MIT license](LICENSE.txt). |
0 commit comments