Updated README
authorAdam Dullage <redacted>
Sat, 20 Aug 2022 15:39:05 +0000 (16:39 +0100)
committerAdam Dullage <redacted>
Sat, 20 Aug 2022 15:39:05 +0000 (16:39 +0100)
README.md
docker-compose.yaml
docs/logo.svg [new file with mode: 0644]

index 90b37bd972daa997417a12a98558d59bd060c5c6..1849e91be5fb42a4bb55a9d3529524a4da07014b 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,25 +1,48 @@
-# flatnotes ![status](https://img.shields.io/badge/status-alpha-blue)
+![Logo](docs/logo.svg)
+
+A database-less note taking web app that utilises a flat folder of markdown files for storage.
+
+Log into the [demo site](https://demo.flatnotes.io) and take a look around. The username is `demo` and the password is `demo`. *Note: This site resets every 15 minutes.*
 
-A note taking web app that utilises a flat folder of markdown files for storage.
 
 ## Design Principle
 
-For a long time now I've written and stored all of my personal notes in a simple folder of markdown files. I find that the simple, distraction free formatting helps me focus on the content and the storage medium frees me from being locked into any particular note taking app.
-
-Still, I was unable to find an editor that ticked all the boxes:
-
-* Support for flat folder storage
-* Cross platform (web based)
-* Mobile friendly
-* Clean, simple interface
-* Good markdown support for:
-  * Tables
-  * Code Blocks (Syntax Highlighting)
-  * Task Lists
-* Full text searching
-* Support for embedding images (and storing them)
-* Support for uploading file attachments - NOT YET IMPLEMENTED
-* Password authentication
-* The ability to share notes as public read-only URLs - NOT YET IMPLEMENTED
-
-This is what flatnotes aims to achieve.
+flatnotes is designed to be a distraction free note taking app that puts your note content first. This means:
+
+* A clean and simple user interface.
+* No folders, categories, keywords, notebooks, tags or anything like that. Just all of your notes backed by powerful search functionality.
+* Quick access to a full text search from anywhere in the app (keyboard shortcut "/").
+
+
+## Q&A
+### Where is the database?
+There is no database, only a single folder of markdown files (and the .flatnotes sub-folder).
+
+### What is the .flatnotes sub-folder for?
+This stores a full text index of your note content allowing for rapid search times.
+
+### Can I delete the .flatnotes sub-folder?
+As long as flatnotes isn't running, sure! It'll just get rebuilt then next time flatnotes is run.
+
+### Can I add, edit & delete the markdown files outside of flatnotes?
+Yup. The only thing flatnotes caches is the search index and that's synced on every search (and when flatnotes first starts).
+
+### Can I perform advanced searches?
+Yes! See the [Advanced Searching](https://github.com/Dullage/flatnotes/wiki/Advanced-Searching) wiki page.
+
+### How do I get my notes out of flatnotes?
+They're just markdown files. There's no database, proprietary formatting, complicated folder structures or anything like that so you're free to just move the files elsewhere and use another markdown editor.
+
+
+## Roadmap
+I want to keep flatnotes as simple and distraction free as possible which means limiting new features. This said, I welcome feedback and suggestions.
+
+One feature I do plan to implement is the ability to *share* a note. In the spirit of simple and database-less, the current plan is to generate temporary pre-signed URLs but this needs to be explored.
+
+
+## Thanks
+
+A special thanks to 2 fantastic open source projects that make flatnotes possible.
+
+* [Whoosh](https://whoosh.readthedocs.io/en/latest/intro.html) - A fast, pure Python search engine library.
+* [TOAST UI Editor](https://ui.toast.com/tui-editor) - A GFM Markdown and WYSIWYG editor for the browser.
index 71d28a4e393a637238272e5c3b047eb936800a93..7b940ca120cfbdfb23609d45db7029726000e536 100644 (file)
@@ -12,7 +12,7 @@ services:
       # FLATNOTES_SESSION_EXPIRY_DAYS: "7"                   # Optional. Defaults to 30.
     volumes:
       - "./data:/data"
-      # - "./index:/data/.flatnotes"                         # Optional. Saves rebuilding the search index the next time the container is re-created
+      # - "./index:/data/.flatnotes"                         # Optional. Allows you to save the search index in a different location
     ports:
       - "80:80"
     restart: unless-stopped
diff --git a/docs/logo.svg b/docs/logo.svg
new file mode 100644 (file)
index 0000000..d08bdf9
--- /dev/null
@@ -0,0 +1,6 @@
+<svg width="197" height="44" viewBox="0 0 197 44" fill="none"
+    xmlns="http://www.w3.org/2000/svg">
+    <rect y="4" width="36" height="36" rx="4" fill="#FFA76C"/>
+    <path d="M9.904 32.88C9.75467 32.88 9.59467 32.7733 9.424 32.56C9.27467 32.3467 9.14667 32.1013 9.04 31.824C8.95467 31.5467 8.912 31.3227 8.912 31.152C8.95467 30.32 9.14667 29.3813 9.488 28.336C9.59467 28.0373 9.75467 27.9093 9.968 27.952C10.0107 27.5893 10.0533 27.1307 10.096 26.576C10.16 26.0213 10.2347 25.3813 10.32 24.656C10.2133 24.3573 9.98933 24.208 9.648 24.208C9.56267 24.208 9.24267 24.2613 8.688 24.368C8.15467 24.4747 7.36533 24.6347 6.32 24.848C6.29867 24.848 6.27733 24.8587 6.256 24.88C6.23467 24.88 6.20267 24.8693 6.16 24.848C5.94667 24.848 5.84 24.72 5.84 24.464C5.84 24.1653 5.97867 23.952 6.256 23.824L6.224 23.856C6.544 23.7067 7.32267 23.4827 8.56 23.184C9.47733 22.9493 10.2133 22.6507 10.768 22.288L10.96 20.656C11.0453 19.8667 11.184 19.056 11.376 18.224C11.568 17.3707 11.8347 16.5067 12.176 15.632C12.88 13.7333 13.712 12.208 14.672 11.056C15.4827 10.1173 16.2933 9.648 17.104 9.648C17.808 9.648 18.4267 9.97867 18.96 10.64C19.0453 10.7253 19.088 10.8213 19.088 10.928C19.088 11.1627 18.96 11.28 18.704 11.28C18.5547 11.28 18.4267 11.216 18.32 11.088C17.9787 10.6827 17.6053 10.48 17.2 10.48C16.24 10.48 15.2267 11.536 14.16 13.648C13.7333 14.5013 13.36 15.5147 13.04 16.688C12.72 17.84 12.4747 19.1413 12.304 20.592L12.272 21.136L12.208 22C12.8267 22.192 13.5093 22.288 14.256 22.288L16.304 22.224C16.944 22.2453 17.264 22.4587 17.264 22.864C17.264 23.2267 17.0933 23.408 16.752 23.408H14.256C13.36 23.472 12.5707 23.7173 11.888 24.144C11.248 29.0933 10.704 31.92 10.256 32.624C10.1493 32.7947 10.032 32.88 9.904 32.88ZM17.839 31.856C17.3483 31.856 16.9643 31.792 16.687 31.664C16.431 31.536 16.303 31.3973 16.303 31.248C16.303 31.12 16.367 31.0027 16.495 30.896C16.6443 30.7893 16.8897 30.7253 17.231 30.704C17.6577 30.6827 18.255 30.6613 19.023 30.64C19.791 30.6187 20.6337 30.5973 21.551 30.576C22.4897 30.5547 23.407 30.544 24.303 30.544C24.7723 30.544 25.231 30.544 25.679 30.544C26.127 30.544 26.5217 30.5547 26.863 30.576C27.2257 30.5973 27.4923 30.6293 27.663 30.672C27.8337 30.7147 27.919 30.832 27.919 31.024C27.919 31.2587 27.823 31.408 27.631 31.472C27.439 31.536 27.2043 31.568 26.927 31.568C26.4363 31.568 25.7963 31.5787 25.007 31.6C24.2177 31.6427 23.375 31.6747 22.479 31.696C21.583 31.7387 20.719 31.7707 19.887 31.792C19.0763 31.8347 18.3937 31.856 17.839 31.856Z" fill="white"/>
+    <path d="M57.5057 15.3636V17.9205H46.9205V15.3636H57.5057ZM50.0909 35V12.6534C50.0909 11.5284 50.3551 10.5909 50.8835 9.84091C51.4119 9.09091 52.098 8.52841 52.9418 8.15341C53.7855 7.77841 54.6761 7.59091 55.6136 7.59091C56.3551 7.59091 56.9602 7.65057 57.429 7.76989C57.8977 7.8892 58.2472 8 58.4773 8.10227L57.608 10.7102C57.4545 10.6591 57.2415 10.5952 56.9688 10.5185C56.7045 10.4418 56.3551 10.4034 55.9205 10.4034C54.9233 10.4034 54.2031 10.6548 53.7599 11.1577C53.3253 11.6605 53.108 12.3977 53.108 13.3693V35H50.0909ZM64.7511 8.81818V35H61.734V8.81818H64.7511ZM76.0554 35.4602C74.8111 35.4602 73.6818 35.2259 72.6676 34.7571C71.6534 34.2798 70.848 33.5938 70.2514 32.6989C69.6548 31.7955 69.3565 30.7045 69.3565 29.4261C69.3565 28.3011 69.5781 27.3892 70.0213 26.6903C70.4645 25.983 71.0568 25.429 71.7983 25.0284C72.5398 24.6278 73.358 24.3295 74.2528 24.1335C75.1563 23.929 76.0639 23.767 76.9759 23.6477C78.169 23.4943 79.1364 23.3793 79.8778 23.3026C80.6278 23.2173 81.1733 23.0767 81.5142 22.8807C81.8636 22.6847 82.0384 22.3437 82.0384 21.858V21.7557C82.0384 20.4943 81.6932 19.5142 81.0028 18.8153C80.321 18.1165 79.2855 17.767 77.8963 17.767C76.456 17.767 75.3267 18.0824 74.5085 18.7131C73.6903 19.3437 73.1151 20.017 72.7827 20.733L69.919 19.7102C70.4304 18.517 71.1122 17.5881 71.9645 16.9233C72.8253 16.25 73.7628 15.7812 74.777 15.517C75.7997 15.2443 76.8054 15.108 77.794 15.108C78.4247 15.108 79.1491 15.1847 79.9673 15.3381C80.794 15.483 81.5909 15.7855 82.358 16.2457C83.1335 16.706 83.777 17.4006 84.2884 18.3295C84.7997 19.2585 85.0554 20.5028 85.0554 22.0625V35H82.0384V32.3409H81.8849C81.6804 32.767 81.3395 33.223 80.8622 33.7088C80.3849 34.1946 79.75 34.608 78.9574 34.9489C78.1648 35.2898 77.1974 35.4602 76.0554 35.4602ZM76.5156 32.75C77.7088 32.75 78.7145 32.5156 79.5327 32.0469C80.3594 31.5781 80.9815 30.973 81.3991 30.2315C81.8253 29.4901 82.0384 28.7102 82.0384 27.892V25.1307C81.9105 25.2841 81.6293 25.4247 81.1946 25.5526C80.7685 25.6719 80.2741 25.7784 79.7116 25.8722C79.1577 25.9574 78.6165 26.0341 78.0881 26.1023C77.5682 26.1619 77.1463 26.2131 76.8224 26.2557C76.0384 26.358 75.3054 26.5241 74.6236 26.7543C73.9503 26.9759 73.4048 27.3125 72.9872 27.7642C72.5781 28.2074 72.3736 28.8125 72.3736 29.5795C72.3736 30.6278 72.7614 31.4205 73.5369 31.9574C74.321 32.4858 75.3139 32.75 76.5156 32.75ZM99.1019 15.3636V17.9205H88.9258V15.3636H99.1019ZM91.8917 10.6591H94.9087V29.375C94.9087 30.2273 95.0323 30.8665 95.2795 31.2926C95.5352 31.7102 95.859 31.9915 96.2511 32.1364C96.6516 32.2727 97.0735 32.3409 97.5167 32.3409C97.8491 32.3409 98.1218 32.3239 98.3349 32.2898C98.5479 32.2472 98.7184 32.2131 98.8462 32.1875L99.4599 34.8977C99.2553 34.9744 98.9698 35.0511 98.6033 35.1278C98.2369 35.2131 97.7724 35.2557 97.2099 35.2557C96.3576 35.2557 95.5224 35.0724 94.7042 34.706C93.8945 34.3395 93.2212 33.7812 92.6843 33.0312C92.1559 32.2812 91.8917 31.3352 91.8917 30.1932V10.6591ZM106.657 23.1875V35H103.64V15.3636H106.555V18.4318H106.811C107.271 17.4347 107.97 16.6335 108.907 16.0284C109.845 15.4148 111.055 15.108 112.538 15.108C113.868 15.108 115.031 15.3807 116.028 15.9261C117.025 16.4631 117.801 17.2812 118.355 18.3807C118.909 19.4716 119.186 20.8523 119.186 22.5227V35H116.169V22.7273C116.169 21.1847 115.768 19.983 114.967 19.1222C114.166 18.2528 113.066 17.8182 111.669 17.8182C110.706 17.8182 109.845 18.027 109.086 18.4446C108.336 18.8622 107.744 19.4716 107.309 20.2727C106.875 21.0739 106.657 22.0455 106.657 23.1875ZM132.676 35.4091C130.903 35.4091 129.348 34.9872 128.01 34.1435C126.68 33.2997 125.641 32.1193 124.891 30.6023C124.149 29.0852 123.778 27.3125 123.778 25.2841C123.778 23.2386 124.149 21.4531 124.891 19.9276C125.641 18.402 126.68 17.2173 128.01 16.3736C129.348 15.5298 130.903 15.108 132.676 15.108C134.449 15.108 136 15.5298 137.33 16.3736C138.668 17.2173 139.707 18.402 140.449 19.9276C141.199 21.4531 141.574 23.2386 141.574 25.2841C141.574 27.3125 141.199 29.0852 140.449 30.6023C139.707 32.1193 138.668 33.2997 137.33 34.1435C136 34.9872 134.449 35.4091 132.676 35.4091ZM132.676 32.6989C134.023 32.6989 135.131 32.3537 136 31.6634C136.869 30.973 137.513 30.0653 137.93 28.9403C138.348 27.8153 138.557 26.5966 138.557 25.2841C138.557 23.9716 138.348 22.7486 137.93 21.6151C137.513 20.4815 136.869 19.5653 136 18.8665C135.131 18.1676 134.023 17.8182 132.676 17.8182C131.33 17.8182 130.222 18.1676 129.352 18.8665C128.483 19.5653 127.839 20.4815 127.422 21.6151C127.004 22.7486 126.795 23.9716 126.795 25.2841C126.795 26.5966 127.004 27.8153 127.422 28.9403C127.839 30.0653 128.483 30.973 129.352 31.6634C130.222 32.3537 131.33 32.6989 132.676 32.6989ZM154.719 15.3636V17.9205H144.543V15.3636H154.719ZM147.509 10.6591H150.526V29.375C150.526 30.2273 150.65 30.8665 150.897 31.2926C151.152 31.7102 151.476 31.9915 151.868 32.1364C152.269 32.2727 152.691 32.3409 153.134 32.3409C153.466 32.3409 153.739 32.3239 153.952 32.2898C154.165 32.2472 154.336 32.2131 154.463 32.1875L155.077 34.8977C154.873 34.9744 154.587 35.0511 154.221 35.1278C153.854 35.2131 153.39 35.2557 152.827 35.2557C151.975 35.2557 151.14 35.0724 150.321 34.706C149.512 34.3395 148.838 33.7812 148.301 33.0312C147.773 32.2812 147.509 31.3352 147.509 30.1932V10.6591ZM167.279 35.4091C165.387 35.4091 163.755 34.9915 162.383 34.1562C161.02 33.3125 159.967 32.1364 159.225 30.6278C158.493 29.1108 158.126 27.3466 158.126 25.3352C158.126 23.3239 158.493 21.5511 159.225 20.017C159.967 18.4744 160.998 17.2727 162.319 16.4119C163.649 15.5426 165.2 15.108 166.973 15.108C167.995 15.108 169.005 15.2784 170.002 15.6193C171 15.9602 171.907 16.5142 172.725 17.2812C173.544 18.0398 174.196 19.0455 174.681 20.2983C175.167 21.5511 175.41 23.0937 175.41 24.9261V26.2045H160.274V23.5966H172.342C172.342 22.4886 172.12 21.5 171.677 20.6307C171.243 19.7614 170.62 19.0753 169.811 18.5724C169.01 18.0696 168.064 17.8182 166.973 17.8182C165.771 17.8182 164.731 18.1165 163.853 18.7131C162.984 19.3011 162.315 20.0682 161.846 21.0142C161.377 21.9602 161.143 22.9744 161.143 24.0568V25.7955C161.143 27.2784 161.399 28.5355 161.91 29.5668C162.43 30.5895 163.15 31.3693 164.071 31.9062C164.991 32.4347 166.061 32.6989 167.279 32.6989C168.072 32.6989 168.788 32.5881 169.427 32.3665C170.075 32.1364 170.633 31.7955 171.102 31.3438C171.571 30.8835 171.933 30.3125 172.189 29.6307L175.103 30.4489C174.797 31.4375 174.281 32.3068 173.556 33.0568C172.832 33.7983 171.937 34.3778 170.872 34.7955C169.806 35.2045 168.609 35.4091 167.279 35.4091ZM193.909 19.7614L191.199 20.5284C191.028 20.0767 190.777 19.6378 190.444 19.2116C190.12 18.777 189.677 18.419 189.115 18.1378C188.552 17.8565 187.832 17.7159 186.954 17.7159C185.752 17.7159 184.751 17.9929 183.95 18.5469C183.157 19.0923 182.761 19.7869 182.761 20.6307C182.761 21.3807 183.034 21.973 183.579 22.4077C184.125 22.8423 184.977 23.2045 186.136 23.4943L189.051 24.2102C190.806 24.6364 192.115 25.2884 192.975 26.1662C193.836 27.0355 194.267 28.1562 194.267 29.5284C194.267 30.6534 193.943 31.6591 193.295 32.5455C192.656 33.4318 191.761 34.1307 190.61 34.642C189.46 35.1534 188.122 35.4091 186.596 35.4091C184.593 35.4091 182.936 34.9744 181.623 34.1051C180.311 33.2358 179.48 31.9659 179.13 30.2955L181.994 29.5795C182.267 30.6364 182.782 31.429 183.541 31.9574C184.308 32.4858 185.309 32.75 186.545 32.75C187.951 32.75 189.068 32.4517 189.895 31.8551C190.73 31.25 191.147 30.5256 191.147 29.6818C191.147 29 190.909 28.429 190.431 27.9688C189.954 27.5 189.221 27.1506 188.233 26.9205L184.96 26.1534C183.162 25.7273 181.841 25.0668 180.997 24.1719C180.162 23.2685 179.744 22.1392 179.744 20.7841C179.744 19.6761 180.055 18.696 180.677 17.8438C181.308 16.9915 182.164 16.3224 183.247 15.8366C184.338 15.3509 185.574 15.108 186.954 15.108C188.897 15.108 190.423 15.5341 191.531 16.3864C192.647 17.2386 193.44 18.3636 193.909 19.7614Z" fill="#9CAFBF"/>
+</svg>
git clone https://git.99rst.org/PROJECT