Commit 1d4d54
2024-05-30 15:47:33 J4nis05: Started with deb documentation| /dev/null .. .obsidian/app.json | |
| @@ 0,0 1,3 @@ | |
| + | { |
| + | "alwaysUpdateLinks": true |
| + | } |
| \ | No newline at end of file |
| /dev/null .. .obsidian/appearance.json | |
| @@ 0,0 1,3 @@ | |
| + | { |
| + | "accentColor": "" |
| + | } |
| \ | No newline at end of file |
| /dev/null .. .obsidian/core-plugins-migration.json | |
| @@ 0,0 1,30 @@ | |
| + | { |
| + | "file-explorer": true, |
| + | "global-search": true, |
| + | "switcher": true, |
| + | "graph": true, |
| + | "backlink": true, |
| + | "canvas": true, |
| + | "outgoing-link": true, |
| + | "tag-pane": true, |
| + | "properties": false, |
| + | "page-preview": true, |
| + | "daily-notes": true, |
| + | "templates": true, |
| + | "note-composer": true, |
| + | "command-palette": true, |
| + | "slash-command": false, |
| + | "editor-status": true, |
| + | "bookmarks": true, |
| + | "markdown-importer": false, |
| + | "zk-prefixer": false, |
| + | "random-note": false, |
| + | "outline": true, |
| + | "word-count": true, |
| + | "slides": false, |
| + | "audio-recorder": false, |
| + | "workspaces": false, |
| + | "file-recovery": true, |
| + | "publish": false, |
| + | "sync": false |
| + | } |
| \ | No newline at end of file |
| /dev/null .. .obsidian/core-plugins.json | |
| @@ 0,0 1,20 @@ | |
| + | [ |
| + | "file-explorer", |
| + | "global-search", |
| + | "switcher", |
| + | "graph", |
| + | "backlink", |
| + | "canvas", |
| + | "outgoing-link", |
| + | "tag-pane", |
| + | "page-preview", |
| + | "daily-notes", |
| + | "templates", |
| + | "note-composer", |
| + | "command-palette", |
| + | "editor-status", |
| + | "bookmarks", |
| + | "outline", |
| + | "word-count", |
| + | "file-recovery" |
| + | ] |
| \ | No newline at end of file |
| /dev/null .. .obsidian/workspace.json | |
| @@ 0,0 1,183 @@ | |
| + | { |
| + | "main": { |
| + | "id": "c60c35da084eb35a", |
| + | "type": "split", |
| + | "children": [ |
| + | { |
| + | "id": "8639204c5399c7cd", |
| + | "type": "tabs", |
| + | "children": [ |
| + | { |
| + | "id": "71f8f7e6c7e5dce4", |
| + | "type": "leaf", |
| + | "state": { |
| + | "type": "markdown", |
| + | "state": { |
| + | "file": "fren/debian-setup/install-portainer.md", |
| + | "mode": "source", |
| + | "source": false |
| + | } |
| + | } |
| + | }, |
| + | { |
| + | "id": "b2c74c42f6f8c5a3", |
| + | "type": "leaf", |
| + | "state": { |
| + | "type": "markdown", |
| + | "state": { |
| + | "file": "obsidian/css-snippets.md", |
| + | "mode": "source", |
| + | "source": false |
| + | } |
| + | } |
| + | } |
| + | ] |
| + | } |
| + | ], |
| + | "direction": "vertical" |
| + | }, |
| + | "left": { |
| + | "id": "59f7b7308b73f381", |
| + | "type": "split", |
| + | "children": [ |
| + | { |
| + | "id": "07bed201ec857dcd", |
| + | "type": "tabs", |
| + | "children": [ |
| + | { |
| + | "id": "000b2d73afe8ded4", |
| + | "type": "leaf", |
| + | "state": { |
| + | "type": "file-explorer", |
| + | "state": { |
| + | "sortOrder": "alphabetical" |
| + | } |
| + | } |
| + | }, |
| + | { |
| + | "id": "65e1d57066a8ed4c", |
| + | "type": "leaf", |
| + | "state": { |
| + | "type": "search", |
| + | "state": { |
| + | "query": "", |
| + | "matchingCase": false, |
| + | "explainSearch": false, |
| + | "collapseAll": false, |
| + | "extraContext": false, |
| + | "sortOrder": "alphabetical" |
| + | } |
| + | } |
| + | }, |
| + | { |
| + | "id": "44f16026e197d167", |
| + | "type": "leaf", |
| + | "state": { |
| + | "type": "bookmarks", |
| + | "state": {} |
| + | } |
| + | } |
| + | ] |
| + | } |
| + | ], |
| + | "direction": "horizontal", |
| + | "width": 300 |
| + | }, |
| + | "right": { |
| + | "id": "6eab58cf907a4e51", |
| + | "type": "split", |
| + | "children": [ |
| + | { |
| + | "id": "f20c6f3a7f8343a1", |
| + | "type": "tabs", |
| + | "children": [ |
| + | { |
| + | "id": "c8ae9860d52a8c12", |
| + | "type": "leaf", |
| + | "state": { |
| + | "type": "backlink", |
| + | "state": { |
| + | "file": "fren/debian-setup/install-portainer.md", |
| + | "collapseAll": false, |
| + | "extraContext": false, |
| + | "sortOrder": "alphabetical", |
| + | "showSearch": false, |
| + | "searchQuery": "", |
| + | "backlinkCollapsed": false, |
| + | "unlinkedCollapsed": true |
| + | } |
| + | } |
| + | }, |
| + | { |
| + | "id": "b49ea3c1a811406a", |
| + | "type": "leaf", |
| + | "state": { |
| + | "type": "outgoing-link", |
| + | "state": { |
| + | "file": "fren/debian-setup/install-portainer.md", |
| + | "linksCollapsed": false, |
| + | "unlinkedCollapsed": true |
| + | } |
| + | } |
| + | }, |
| + | { |
| + | "id": "f89f63ed2420f481", |
| + | "type": "leaf", |
| + | "state": { |
| + | "type": "tag", |
| + | "state": { |
| + | "sortOrder": "frequency", |
| + | "useHierarchy": true |
| + | } |
| + | } |
| + | }, |
| + | { |
| + | "id": "502573957eefbac3", |
| + | "type": "leaf", |
| + | "state": { |
| + | "type": "outline", |
| + | "state": { |
| + | "file": "fren/debian-setup/install-portainer.md" |
| + | } |
| + | } |
| + | } |
| + | ] |
| + | } |
| + | ], |
| + | "direction": "horizontal", |
| + | "width": 300, |
| + | "collapsed": true |
| + | }, |
| + | "left-ribbon": { |
| + | "hiddenItems": { |
| + | "switcher:Open quick switcher": false, |
| + | "graph:Open graph view": false, |
| + | "canvas:Create new canvas": false, |
| + | "daily-notes:Open today's daily note": false, |
| + | "templates:Insert template": false, |
| + | "command-palette:Open command palette": false |
| + | } |
| + | }, |
| + | "active": "71f8f7e6c7e5dce4", |
| + | "lastOpenFiles": [ |
| + | "fren/debian-setup/install-cockpit.md", |
| + | "fren/debian-setup/install-portainer.md", |
| + | "fren/debian-setup/edit-apt-sources.md", |
| + | "fren/debian-setup/install-docker.md", |
| + | "fren/debian-setup/mount-drive.md", |
| + | "fren/debian-setup/static-ip.md", |
| + | "fren/debian-setup/add-to-sudoers.md", |
| + | "fren/debian-setup/readme.md", |
| + | "fren/readme.md", |
| + | "fren/debian-setup", |
| + | "obsidian/css-snippets.md", |
| + | "home.md", |
| + | "fren", |
| + | "obsidian/readme.md", |
| + | "raspydock/readme.md", |
| + | "docker/readme.md", |
| + | "obsidian", |
| + | "raspydock", |
| + | "docker" |
| + | ] |
| + | } |
| \ | No newline at end of file |
| /dev/null .. docker/readme.md | |
| @@ 0,0 1,1 @@ | |
| + | docker config |
| \ | No newline at end of file |
| /dev/null .. fren/debian-setup/add-to-sudoers.md | |
| @@ 0,0 1,39 @@ | |
| + | Here's a short guide on how to add a user to the sudoers file and grant them full administrative permissions on a Debian system: |
| + | |
| + | 1. **Add the user to the sudo group**: |
| + | Assuming the username is `username`, add the user to the `sudo` group. This group has sudo privileges by default. |
| + | ```bash |
| + | sudo usermod -aG sudo username |
| + | ``` |
| + | |
| + | 2. **Verify the user is added to the sudo group**: |
| + | Check the group membership of the user to ensure they have been added to the `sudo` group. |
| + | ```bash |
| + | groups username |
| + | ``` |
| + | |
| + | 3. **Edit the sudoers file (optional)**: |
| + | If you need to provide specific permissions or want to manually add the user to the sudoers file, use the `visudo` command to safely edit the file: |
| + | ```bash |
| + | sudo visudo |
| + | ``` |
| + | |
| + | 4. **Add user with full sudo permissions**: |
| + | Within the `visudo` file, add the following line to grant full sudo permissions to the user `username`: |
| + | ```bash |
| + | username ALL=(ALL:ALL) ALL |
| + | ``` |
| + | |
| + | 5. **Save and exit**: |
| + | If using the default editor (`nano`), save the file by pressing `Ctrl+O`, then press `Enter` to confirm. Exit the editor by pressing `Ctrl+X`. |
| + | |
| + | 6. **Test the sudo access**: |
| + | Switch to the user and test if they have sudo privileges: |
| + | ```bash |
| + | su - username |
| + | sudo ls /root |
| + | ``` |
| + | |
| + | The command should prompt for the user's password and then list the contents of the `/root` directory if the user has proper sudo access. |
| + | |
| + | That's it! The user `username` should now have full administrative permissions using `sudo`. |
| \ | No newline at end of file |
| /dev/null .. fren/debian-setup/edit-apt-sources.md | |
| @@ 0,0 1,15 @@ | |
| + | ### 1. Open the APT `sources.list` File |
| + | ```shell |
| + | sudo nano /etc/apt/sources.list |
| + | ``` |
| + | |
| + | ### 2. Remove any `cdrom` entries |
| + | * Sometimes Debian Adds the Install CD (aka. the Install USB) as a source for apt packages |
| + | * If `apt` can't access an entry it just throws errors |
| + | * Should the `sources.list` contain Lines starting with `deb cdrom:[Debian...` comment it out by adding a `# ` to the start of the Line |
| + | |
| + | ### 3. Update APT |
| + | After Saving the `sources.list` file Update apt by running |
| + | ```shell |
| + | sudo apt update |
| + | ``` |
| /dev/null .. fren/debian-setup/install-cockpit.md | |
| /dev/null .. fren/debian-setup/install-docker.md | |
| @@ 0,0 1,36 @@ | |
| + | Here's a guide on how to Install Docker on Debian. |
| + | |
| + | ### 1. Uninstall Conflicting Packages |
| + | ```shell |
| + | for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done |
| + | ``` |
| + | |
| + | ### 2. Set up Dockers apt repository |
| + | ```shell |
| + | # Add Docker's official GPG key: |
| + | sudo apt-get update |
| + | sudo apt-get install ca-certificates curl |
| + | sudo install -m 0755 -d /etc/apt/keyrings |
| + | sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc |
| + | sudo chmod a+r /etc/apt/keyrings/docker.asc |
| + | |
| + | # Add the repository to Apt sources: |
| + | echo \ |
| + | "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \ |
| + | $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ |
| + | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |
| + | sudo apt-get update |
| + | ``` |
| + | |
| + | ### 3. Install latest Docker Version |
| + | ```shell |
| + | sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin |
| + | ``` |
| + | |
| + | ### 4. Verify Installation |
| + | ``` |
| + | sudo docker run hello-world |
| + | ``` |
| + | |
| + | |
| + | |
| /dev/null .. fren/debian-setup/install-portainer.md | |
| @@ 0,0 1,9 @@ | |
| + | ### 1. Set up Docker Network |
| + | ```shell |
| + | docker network create proxynet |
| + | ``` |
| + | |
| + | ### 2. Path |
| + | ### 3. Volume Binding |
| + | ### 3.1 Docker Volume |
| + | |
| /dev/null .. fren/debian-setup/mount-drive.md | |
| @@ 0,0 1,53 @@ | |
| + | Here's a concise guide on how to format a drive as ext4 and mount it using UUID on a Debian system: |
| + | |
| + | ### 1. Identify the Drive |
| + | First, identify the drive you want to format. You can use the `lsblk` command: |
| + | ```bash |
| + | lsblk |
| + | ``` |
| + | |
| + | ### 2. Format the Drive as ext4 |
| + | Assuming your drive is `/dev/sdX` (replace `X` with the appropriate letter), format it as ext4: |
| + | ```bash |
| + | sudo mkfs.ext4 /dev/sdX |
| + | ``` |
| + | |
| + | ### 3. Get the UUID of the Drive |
| + | Retrieve the UUID of the newly formatted drive: |
| + | ```bash |
| + | sudo blkid /dev/sdX |
| + | ``` |
| + | Note the UUID, which will look something like `UUID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"`. |
| + | |
| + | ### 4. Create a Mount Point |
| + | Create a directory where you want to mount the drive. For example: |
| + | ```bash |
| + | sudo mkdir /mnt/mydrive |
| + | ``` |
| + | |
| + | ### 5. Edit the fstab File |
| + | Open the `/etc/fstab` file in a text editor: |
| + | ```bash |
| + | sudo nano /etc/fstab |
| + | ``` |
| + | |
| + | Add the following line at the end of the file, replacing `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` with the actual UUID and `/mnt/mydrive` with your desired mount point: |
| + | ```bash |
| + | UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /mnt/mydrive ext4 defaults 0 2 |
| + | ``` |
| + | |
| + | ### 6. Mount the Drive |
| + | Mount all filesystems mentioned in `/etc/fstab` to apply the new configuration: |
| + | ```bash |
| + | sudo mount -a |
| + | ``` |
| + | |
| + | ### 7. Verify the Mount |
| + | Check that the drive is mounted correctly: |
| + | ```bash |
| + | df -h |
| + | ``` |
| + | |
| + | You should see the drive listed with the mount point you specified. |
| + | |
| + | That's it! You've successfully formatted the drive as ext4 and mounted it using its UUID. |
| \ | No newline at end of file |
| /dev/null .. fren/debian-setup/readme.md | |
| /dev/null .. fren/debian-setup/static-ip.md | |
| @@ 0,0 1,52 @@ | |
| + | ## Static IP |
| + | * List Network Interfaces with `ip a` |
| + | |
| + | ```shell |
| + | $> ip a |
| + | |
| + | 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 |
| + | link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 |
| + | inet 127.0.0.1/8 scope host lo |
| + | valid_lft forever preferred_lft forever |
| + | inet6 ::1/128 scope host noprefixroute |
| + | valid_lft forever preferred_lft forever |
| + | 2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 |
| + | link/ether d8:bb:c1:60:e1:89 brd ff:ff:ff:ff:ff:ff |
| + | inet 192.168.1.64/24 brd 192.168.1.255 scope global enp3s0 |
| + | valid_lft forever preferred_lft forever |
| + | inet6 fe80::dabb:c1ff:fe60:e189/64 scope link |
| + | valid_lft forever preferred_lft forever |
| + | ``` |
| + | |
| + | * Interfaces: |
| + | * `1: lo`: Loopback address (localhost / 127.0.0.1) |
| + | * `2: enp3s0`: Server Ethernet Port (Can also be something like `eth0`) |
| + | |
| + | * Open interfaces file to set static IP |
| + | |
| + | ```shell |
| + | sudo nano /etc/network/interfaces |
| + | ``` |
| + | |
| + | * Add / Edit Entry for the Ethernet Port (using name `enp3s0`) |
| + | |
| + | ``` |
| + | allow-hotplug enp3s0 |
| + | iface enp3s0 inet static |
| + | address 192.168.1.100 |
| + | netmask 255.255.255.0 |
| + | gateway 192.168.1.1 |
| + | dns-nameservers 1.1.1.1 1.1.0.1 |
| + | ``` |
| + | |
| + | * Restart Networking Service |
| + | |
| + | ```shell |
| + | sudo systemctl restart networking |
| + | ``` |
| + | |
| + | * Check Interface IP Address (using name `enp3s0`) |
| + | |
| + | ```shell |
| + | ip addr show enp3s0 |
| + | ``` |
| /dev/null .. fren/readme.md | |
| @@ 0,0 1,7 @@ | |
| + | |
| + | Debian Setup: [readme](debian-setup/readme.md) |
| + | |
| + | |
| + | |
| + | |
| + | |
| /dev/null .. obsidian/css-snippets.md | |
| @@ 0,0 1,227 @@ | |
| + | This List Contains My Obsidian CSS Snippets. |
| + | |
| + | ## Snippet: `canvas-squares.css` |
| + | This Snippet Adds Classes to insert Coloured Squares roughly the same height as the Default Line Height. The Colors are the same as the Default Colors in Obsidian Canvas. The Usage is shown below |
| + | |
| + | ```css |
| + | .markdown-preview-view .gray-square { |
| + | display: inline-block; |
| + | text-align: center; |
| + | width: 15px; |
| + | height: 15px; |
| + | background-color: #7e7e7e; |
| + | } |
| + | |
| + | .markdown-preview-view .red-square { |
| + | display: inline-block; |
| + | text-align: center; |
| + | width: 15px; |
| + | height: 15px; |
| + | background-color: #fb464c; |
| + | } |
| + | |
| + | .markdown-preview-view .orange-square { |
| + | display: inline-block; |
| + | text-align: center; |
| + | width: 15px; |
| + | height: 15px; |
| + | background-color: #e9973f; |
| + | } |
| + | |
| + | .markdown-preview-view .yellow-square { |
| + | display: inline-block; |
| + | text-align: center; |
| + | width: 15px; |
| + | height: 15px; |
| + | background-color: #e0de71; |
| + | } |
| + | |
| + | .markdown-preview-view .green-square { |
| + | display: inline-block; |
| + | text-align: center; |
| + | width: 15px; |
| + | height: 15px; |
| + | background-color: #44cf6e; |
| + | } |
| + | |
| + | .markdown-preview-view .blue-square { |
| + | display: inline-block; |
| + | text-align: center; |
| + | width: 15px; |
| + | height: 15px; |
| + | background-color: #53dfdd; |
| + | } |
| + | |
| + | .markdown-preview-view .purple-square { |
| + | display: inline-block; |
| + | text-align: center; |
| + | width: 15px; |
| + | height: 15px; |
| + | background-color: #a882ff; |
| + | } |
| + | ``` |
| + | |
| + | ### Usage |
| + | To Insert a Coloured Square (into either a Text Box in Canvas or in a regular Note) simply add one of the `div` Tags below: |
| + | |
| + | | Colour | Code | |
| + | | ------------- | ----------------------------------- | |
| + | | Gray Square | `<div class="gray-square"></div>` | |
| + | | Red Square | `<div class="red-square"></div>` | |
| + | | Orange Square | `<div class="orange-square"></div>` | |
| + | | Yellow Square | `<div class="yellow-square"></div>` | |
| + | | Green Square | `<div class="green-square"></div>` | |
| + | | Blue Square | `<div class="blue-square"></div>` | |
| + | | Purple Square | `<div class="purple-square"></div>` | |
| + | |
| + | |
| + | ## Snippet: `break.css` |
| + | This Snippet adds the Ability to insert Page Breaks into an Obsidian File when exporting as a PDF |
| + | |
| + | ```css |
| + | @media print { |
| + | h1 { page-break-before: always; } |
| + | h1:first-of-type { page-break-before: auto; } |
| + | h2, h3, h4, h5, h6 { page-break-after: avoid; } |
| + | .internal-embed { page-break-after: avoid; |
| + | page-break-before: avoid; } |
| + | .page-break { page-break-after: always; } |
| + | } |
| + | ``` |
| + | |
| + | ### Usage |
| + | This Snippet affects 4.5 kinds of classes |
| + | * `h1`: The "Main" or biggest header. It gets a Page break before it, so that the new chapter Starts on a New Page |
| + | * `h1:first-of-type`: If the Main Header is the First element in a Document, the Page break will be overridden |
| + | * `h2-h6`: All Other Headings from Heading 2 to Heading 6 will not automatically receive a Page Break |
| + | * `.internal-embed`: Page Breaks are explicitly disabled for embeds (like other notes, images, etc.) |
| + | * `.page-break`: This is a Custom Class that can be called to insert a Page Break below it at any point in the Document |
| + | |
| + | To call the `page-break` Class you simply need to insert a div element like this |
| + | |
| + | ```html |
| + | This Text will be shown on Page 1 |
| + | |
| + | <div class="page-break"></div> |
| + | |
| + | This Text will be shown on Page 2 |
| + | ``` |
| + | |
| + | > **Note**: When Enabling the Option "Include File name as Title" in the PDF Export Window, Obsidian will add the Filename at the very Top of the File and treat it as an H1 Heading. If you have a H1 Heading as the First element of the File and enable this Option, there **will** be an empty first page with just the title at the Top of it. |
| + | |
| + | |
| + | ## Snippet: `center.css` |
| + | > **The Snippet Doesn't currently work as I intended, see Chapter NOTE below** |
| + | |
| + | This Snippet adds the ability to center content between the opening and closing tags either horizontally, vertically or both. The `@media print` element specifies that the `.center-vertically` and the `.center-both` classes only get applied when printing the content (or in this case exporting as a PDF). |
| + | |
| + | ```css |
| + | @media print { |
| + | .center-vertically { |
| + | display: flex; |
| + | flex-direction: column; |
| + | justify-content: center; |
| + | height: 100vh; |
| + | } |
| + | .center-both { |
| + | display: flex; |
| + | justify-content: center; |
| + | align-items: center; |
| + | height: 100vh; |
| + | } |
| + | } |
| + | |
| + | .center-horizontally { |
| + | display: flex; |
| + | justify-content: center; |
| + | } |
| + | |
| + | table, th, td { |
| + | border: 1px solid black; |
| + | border-collapse: collapse; |
| + | } |
| + | |
| + | th, td { |
| + | padding: 10px; |
| + | text-align: center; |
| + | } |
| + | ``` |
| + | |
| + | ### Usage |
| + | This Snippet has 3 classes: |
| + | * `.center-horizontally`: This Centers content Horizontally on a Page. Due to how the Text behaves in Obsidian this will mostly apply to things like Tables or Images that are too small to fit the entire width of the Page. For this another class / snippet would be needed to force elements to be a certain max width. |
| + | |
| + | ```html |
| + | <div class="center-horizontally"> |
| + | This Text is centered on the horizontal axis. |
| + | This applies both in the Editor and an exported PDF |
| + | </div> |
| + | ``` |
| + | |
| + | * `.center-vertically`: This Centers Content Vertically on a Page. Due to the `@media print` query this only applies to the PDF File. The Designed use Case of this is for something like a cover Page. |
| + | |
| + | ```html |
| + | <div class="center-vertically"> |
| + | This Text is centered on the vertical axis. |
| + | This applies only to an exported PDF |
| + | </div> |
| + | ``` |
| + | |
| + | * `.center-both`: This Centers Content both Horizontally and Vertically on a Page. Due to the `@media print` query this only applies to the PDF File. The Designed use Case of this is for something like a cover Page. |
| + | |
| + | ```html |
| + | <div class="center-both"> |
| + | This Text is centered on both the horizontal and the vertical axis. |
| + | This applies only to an exported PDF |
| + | </div> |
| + | ``` |
| + | |
| + | ### NOTE |
| + | Because of the Way Obsidian Handles HTML Tags, the Elements inside the Div need to be formatted in HTML5. Because of the Tables the two bottom entries needed to be added to the CSS snippet above. |
| + | * `---` --> `<hr>` |
| + | * `newline` --> `<br>` |
| + | * `text` --> `<p>text</p>` |
| + | * `**bold**` --> `<strong>bold</strong>` |
| + | * `table` --> Formatted as Follows: |
| + | |
| + | **Original Table** |
| + | ```markdown |
| + | | 123 | 456 | |
| + | | --- | --- | |
| + | | abc | def | |
| + | | ghi | jkl | |
| + | ``` |
| + | |
| + | **HTML Adjusted Table** |
| + | ```html |
| + | <div class="center-horizontally"> |
| + | <table> |
| + | <thead> <tr> <th>123</th> <th>456</th> </tr> </thead> |
| + | <tbody> <tr> <td>abc</td> <td>def</td> </tr> |
| + | <tr> <td>ghi</td> <td>jkl</td> </tr> </tbody> |
| + | </table> |
| + | </div> |
| + | ``` |
| + | |
| + | |
| + | ## Snippet: `exclude.css` |
| + | This Snippet Adds the simple functionality to exclude any element from being shown when the file is being exported to pdf. This will not remove the content but simply hide it in the pdf, so the possibility of recovering it is still possible. |
| + | |
| + | ```css |
| + | @media print { |
| + | .exclude-from-pdf { display: none; } |
| + | } |
| + | ``` |
| + | |
| + | ### Usage |
| + | To Hide, say, a block of text in the exported PDF File add a `div` Tag with the `exclude-from-pdf` class around the Block of text like this. |
| + | |
| + | ```html |
| + | <div class="exclude-from-pdf"> |
| + | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do |
| + | eiusmod tempor incididunt ut labore et dolore magna aliqua. |
| + | Condimentum vitae sapien pellentesque habitant. |
| + | Lobortis scelerisque fermentum dui faucibus. |
| + | Dignissim suspendisse in est ante. |
| + | </div> |
| + | ``` |
| /dev/null .. obsidian/readme.md | |
| @@ 0,0 1,5 @@ | |
| + | Information about my Obsidian Vault. |
| + | |
| + | **Index** |
| + | * [CSS Snippets](css-snippets.md) |
| + | |
| /dev/null .. raspydock/readme.md | |
| @@ 0,0 1,3 @@ | |
| + | Informationen / Projekt relevante Dateien zur Raspydock Gruppenarbeit an der gibb (IET Module 300 & 306) |
| + | |
| + | **Index** |
