Skip to content

Commit c617cc8

Browse files
committed
Initial commit
0 parents  commit c617cc8

File tree

10 files changed

+173
-0
lines changed

10 files changed

+173
-0
lines changed

.vscode/extensions.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
// Foam's own extension
6+
"foam.foam-vscode",
7+
8+
// Prettier for auto formatting code
9+
"esbenp.prettier-vscode",
10+
11+
// GitLens for seeing version history inline
12+
"eamodio.gitlens",
13+
14+
// Tons of markdown goodies (lists, tables of content, so much more)
15+
"yzhang.markdown-all-in-one",
16+
17+
// [[wiki-links]], backlinking etc
18+
"kortina.vscode-markdown-notes",
19+
20+
// Adds `show graph` command that displays graph of linked notes
21+
"tchayen.markdown-links",
22+
23+
// Understated grayscale theme (light and dark variants)
24+
"philipbe.theme-gray-matter"
25+
]
26+
}

.vscode/foam.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"purpose": "this file exists to tell the foam-vscode plugin that it's currently in a foam workspace",
3+
"future": "we may use this for custom configuration"
4+
}

.vscode/settings.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"editor.minimap.enabled": false,
3+
"editor.wrappingIndent": "indent",
4+
"editor.overviewRulerBorder": false,
5+
"editor.lineHeight": 24,
6+
"workbench.colorTheme": "Gray Matter Light",
7+
"[markdown]": {
8+
"editor.quickSuggestions": true
9+
},
10+
"git.enableSmartCommit": true,
11+
"git.postCommitCommand": "sync",
12+
"files.defaultLanguage": "markdown",
13+
"files.exclude": {
14+
"**/node_modules": true
15+
},
16+
"files.watcherExclude": {
17+
"**/node_modules": true
18+
},
19+
"vscodeMarkdownNotes.noteCompletionConvention": "noExtension",
20+
"vscodeMarkdownNotes.slugifyMethod": "github-slugger",
21+
"foam.edit.linkReferenceDefinitions": "withExtensions"
22+
}

_layouts/home.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
layout: default
3+
---
4+
5+
{{ content }}
6+
7+
<script type="text/javascript">
8+
// Hack: Replace page-link with "Page Title"
9+
document.querySelectorAll(".markdown-body a[title]").forEach((a) => {
10+
a.innerText = a.title;
11+
});
12+
</script>

_layouts/page.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
layout: default
3+
---
4+
5+
{{ content }}
6+
7+
<script type="text/javascript">
8+
// Hack: Replace page-link with "Page Title"
9+
document.querySelectorAll(".markdown-body a[title]").forEach((a) => {
10+
a.innerText = a.title;
11+
});
12+
</script>

assets/css/style.scss

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
---
3+
4+
@import "{{ site.theme }}";
5+
6+
.markdown-body {
7+
max-width: 800px;
8+
font-size: 16px;
9+
}
10+
11+
.markdown-body p {
12+
font-size: 16px;
13+
line-height: 1.9em;
14+
margin-bottom: 1.2em;
15+
}
16+
17+
.markdown-body li {
18+
line-height: 1.9em;
19+
}
20+
21+
input.task-list-item-checkbox {
22+
margin-right: 4px;
23+
}
24+
25+
h1,
26+
h2,
27+
h3,
28+
h4,
29+
h5,
30+
blockquote {
31+
font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida,
32+
"DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;
33+
}

foam-tips.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Foam tips
2+
3+
_For up-to-date tips, see [Foam Recipes](https://foambubble.github.io/foam/recipes/recipes)._

inbox.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Inbox
2+
3+
- Here you can write disorganised notes to be categorised later
4+
- Bullet points are useful, but it could be free form text as well
5+
- Sometimes it's better to just get things off your mind quickly, rather than stop to think where it belongs
6+
- But don't let this list get too long
7+
- Move information to more specific documents and link to them.
8+
- This helps you navigate between documents quickly
9+
- For example, you can `Cmd`+`Click` this: [[todo]]
10+
- Some notes don't end up making sense the next day
11+
- That's ok, you can just delete them!
12+
- You can always find them in your git history, if you really need it!
13+
14+
[//begin]: # "Autogenerated link references for markdown compatibility"
15+
[todo]: todo.md "Todo"
16+
[//end]: # "Autogenerated link references"

readme.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Foam
2+
3+
👋 Welcome to your new Foam Workspace!
4+
5+
## Getting started
6+
7+
This documentation assumes that you have a GitHub account and have [Visual Studio Code](https://code.visualstudio.com/) installed on your Linux/MacOS/Windows machine.
8+
9+
1. If you haven't yet, browse over to the main [Foam documentation workspace](https://foambubble.github.io/foam) to get an idea of what Foam is and how to use it.
10+
2. Press "Use this template" button at [foam-template](https://github.com/foambubble/foam-template/generate) (that's this repository!) to fork it to your own GitHub account. If you want to keep your thoughts to yourself, remember to set the repository private.
11+
3. [Clone the repository to your local machine](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository) and open it in VS Code.
12+
13+
*Open the repository as a folder using the `File > Open...` menu item. In VS Code, "open workspace" refers to [multi-root workspaces](https://code.visualstudio.com/docs/editor/multi-root-workspaces).*
14+
15+
4. When prompted to install recommended extensions, click **Install all** (or **Show Recommendations** if you want to review and install them one by one)
16+
17+
After setting up the repository, open [.vscode/settings.json](.vscode/settings.json) and edit, add or remove any settings you'd like for your Foam workspace.
18+
19+
To learn more about how to use **Foam**, read the [Recipes](https://foambubble.github.io/foam/recipes) bubbles of the Foam documentation workspace.
20+
21+
22+
## Using Foam
23+
24+
We've created a few Bubbles (markdown documents) to get you started.
25+
26+
- [[inbox]] - a place to write down quick notes to be categorised later
27+
- [[foam-tips]] - tips to get the most out of your Foam workspace
28+
- [[todo]] - a place to keep track of things to do
29+
30+
31+
32+
[//begin]: # "Autogenerated link references for markdown compatibility"
33+
[inbox]: inbox.md "Inbox"
34+
[foam-tips]: foam-tips.md "Foam tips"
35+
[todo]: todo.md "Todo"
36+
[//end]: # "Autogenerated link references"

todo.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Todo
2+
3+
- [x] This is an example of a todo list item that's complete
4+
- [x] Todo lists are useful for keeping organised and focused
5+
- [ ] This one is not completed yet
6+
- [ ] You can mark it completed by pressing `Option`+`C` (or `Alt`+`C`) when your cursor is on this line
7+
- [ ] You can also select multiple lines and mark them all at once!
8+
- [ ] When you press enter at the end of a line, it adds a new todo item on the next line
9+
- [ ] This, and more is provided by the [Markdown All in One](https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one) plugin by [Yu Zhang](https://github.com/yzhang-gh)

0 commit comments

Comments
 (0)