You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/blog/best-practices-to-write-tag.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ author: Steven
4
4
published_at: 2022/8/4 11:23:00
5
5
---
6
6
7
-
In memos, the tag is written in the content and displayed by a regex parser. If you have some misrecognized tags, you need a good way to manage your tags accurately, especially where they are written.
7
+
In Memos, the tag is written in the content and displayed by a regex parser. If you have some misrecognized tags, you need a good way to manage your tags accurately, especially where they are written.
Copy file name to clipboardExpand all lines: content/blog/choosing-a-storage-for-your-resource.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ author: Steven
4
4
published_at: 2023/6/24 10:30:00
5
5
---
6
6
7
-
In memos v0.12.0, we introduces a new feature for saving resources into local file system, which means that there are now three storage options available: database, S3, and local storage. Each option has its own advantages and disadvantages, and choosing the right one depends on your specific needs.
7
+
In Memos v0.12.0, we introduces a new feature for saving resources into local file system, which means that there are now three storage options available: database, S3, and local storage. Each option has its own advantages and disadvantages, and choosing the right one depends on your specific needs.
8
8
9
9
## Database storage
10
10
@@ -25,7 +25,7 @@ Related GitHub issue: [GitHub/344](https://github.com/usememos/memos/issues/344)
25
25
## Conclusion
26
26
27
27
- If you mainly use text and have few files, use the default database storage.
28
-
- If you already have S3 object cloud storage, configure your S3 into memos.
28
+
- If you already have S3 object cloud storage, configure your S3 into Memos.
29
29
- If you don't have S3 and use a lot of images, use local storage.
30
30
31
31
Choose the storage option that best suits your needs. Remember, the right storage option can make a big difference in your application's performance and efficiency.
Copy file name to clipboardExpand all lines: content/blog/choosing-between-sqlite-and-mysql.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,26 @@
1
1
---
2
2
title: "Choosing Between SQLite and MySQL: The Database Dilemma"
3
3
author: Steven
4
-
description: In memos v0.16.1, we've introduced support for MySQL as an alternative to the previously used SQLite database. This addition expands your choices for managing your data. In this article, we'll discuss the reasons behind our initial choice of SQLite and why we added MySQL support.
4
+
description: In Memos v0.16.1, we've introduced support for MySQL as an alternative to the previously used SQLite database. This addition expands your choices for managing your data. In this article, we'll discuss the reasons behind our initial choice of SQLite and why we added MySQL support.
In memos v0.16.1, we've introduced support for MySQL as an alternative to the previously used SQLite database. This addition expands your choices for managing your data. In this article, we'll discuss the reasons behind our initial choice of SQLite and why we added MySQL support. We'll also explore the key differences between the two and offer guidance on which one you should choose for your specific needs.
9
+
In Memos v0.16.1, we've introduced support for MySQL as an alternative to the previously used SQLite database. This addition expands your choices for managing your data. In this article, we'll discuss the reasons behind our initial choice of SQLite and why we added MySQL support. We'll also explore the key differences between the two and offer guidance on which one you should choose for your specific needs.
10
10
11
11
## Why We Started with SQLite
12
12
13
13
### Lightweight and Widely Supported
14
14
15
-
At the inception of memos, we selected SQLite as our primary database due to its lightweight nature and widespread use. SQLite's single-file design allows for easy deployment and integration across various systems. This makes it an excellent choice for applications that prioritize simplicity and compatibility.
15
+
At the inception of Memos, we selected SQLite as our primary database due to its lightweight nature and widespread use. SQLite's single-file design allows for easy deployment and integration across various systems. This makes it an excellent choice for applications that prioritize simplicity and compatibility.
16
16
17
17
### Versatile on Any Machine
18
18
19
19
SQLite is well-suited for use on diverse hardware and software environments. Its small footprint and low resource requirements mean you can run it on virtually any machine, from resource-constrained devices to high-performance servers.
20
20
21
21
## Presenting MySQL Support
22
22
23
-
After memos was launched, there were numerous user requests for support for other database types to enable seamless integration with popular cloud database services: [GitHub Issue #163](https://github.com/usememos/memos/issues/163), [GitHub Issue #1816](https://github.com/usememos/memos/issues/1816). With the primary focus being on MySQL support, we also took a moment to highlight its advantages.
23
+
After Memos was launched, there were numerous user requests for support for other database types to enable seamless integration with popular cloud database services: [GitHub Issue #163](https://github.com/usememos/memos/issues/163), [GitHub Issue #1816](https://github.com/usememos/memos/issues/1816). With the primary focus being on MySQL support, we also took a moment to highlight its advantages.
24
24
25
25
### Cloud Compatibility
26
26
@@ -54,9 +54,9 @@ MySQL outperforms SQLite when it comes to handling large datasets and complex qu
54
54
55
55
## How to Choose
56
56
57
-
When deciding between MySQL and SQLite for memos, it's essential to consider your specific use case and existing infrastructure. Here's a tailored guideline to help you make the choice:
57
+
When deciding between MySQL and SQLite for Memos, it's essential to consider your specific use case and existing infrastructure. Here's a tailored guideline to help you make the choice:
58
58
59
-
- If you have a clear understanding of the advantages MySQL can bring to your memos instance, and you already have the necessary cloud server resources, opting for MySQL is a viable choice.
59
+
- If you have a clear understanding of the advantages MySQL can bring to your Memos instance, and you already have the necessary cloud server resources, opting for MySQL is a viable choice.
60
60
61
61
- Furthermore, you can always use SQLite as your database.
Copy file name to clipboardExpand all lines: content/blog/syncing-data-with-icloud.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
2
title: Syncing Data Across My MacBooks with iCloud
3
3
author: Steven
4
-
description: In all honesty, I don't have a suitable cloud service for deploying memos, but I do have two trusty MacBooks - a MacBook Air in home and a MacBook Pro in company. But how to keep data in sync between them?
4
+
description: In all honesty, I don't have a suitable cloud service for deploying Memos, but I do have two trusty MacBooks - a MacBook Air in home and a MacBook Pro in company. But how to keep data in sync between them?
In all honesty, I don't have a suitable cloud service for deploying memos, but I do have two trusty MacBooks - a MacBook Air in home and a MacBook Pro in company. Each served its unique role, but the problem was keeping data in sync between them.
10
10
11
-
The solution began with the realization that the memos' startup command could hold the key. The recommand command looked like this:
11
+
The solution began with the realization that the Memos' startup command could hold the key. The recommand command looked like this:
12
12
13
13
```shell
14
14
docker run -d --name memos -p 5230:5230 -v ~/.memos/:/var/opt/memos ghcr.io/usememos/memos:latest
@@ -32,13 +32,13 @@ The journey started with a visit to my MacBook Air, where I aimed to create a sh
32
32
33
33
### Step 2: Docker Configuration
34
34
35
-
With the iCloud folder in place, I was eager to make use of it in my memos setup. Here's where Docker came into play:
35
+
With the iCloud folder in place, I was eager to make use of it in my Memos setup. Here's where Docker came into play:
36
36
37
37
```shell
38
38
docker run -d --name memos -p 5230:5230 -v ~/Documents/memos/:/var/opt/memos ghcr.io/usememos/memos:latest
39
39
```
40
40
41
-
With this new configuration, I replaced `~/.memos` in the Docker command with the path to the `~/Documents/memos/` folder I created in iCloud Drive. This change meant that memos would now read and write data directly from iCloud, making it accessible from both my MacBook Air and MacBook Pro.
41
+
With this new configuration, I replaced `~/.memos` in the Docker command with the path to the `~/Documents/memos/` folder I created in iCloud Drive. This change meant that Memos would now read and write data directly from iCloud, making it accessible from both my MacBook Air and MacBook Pro.
42
42
43
43
### Step 3: Sync in Action
44
44
@@ -52,6 +52,6 @@ This creative twist set the stage for the grand experiment. Memos, now configure
52
52
53
53
-**Data Privacy**: My data's privacy and security remained under my control, using my own iCloud account.
54
54
55
-
-**Space Management**: Monitoring my iCloud storage space ensured it could comfortably handle my growing memos database.
55
+
-**Space Management**: Monitoring my iCloud storage space ensured it could comfortably handle my growing Memos database.
56
56
57
-
In summary, using iCloud to share memos data between my MacBook Air and MacBook Pro, complemented by creative Docker modifications, has been transformative. It's a straightforward and efficient solution that seamlessly integrates both personal and professional note-taking needs. Now, my notes are always just a click away, and there's no need for a dedicated cloud server for my memos database.
57
+
In summary, using iCloud to share Memos data between my MacBook Air and MacBook Pro, complemented by creative Docker modifications, has been transformative. It's a straightforward and efficient solution that seamlessly integrates both personal and professional note-taking needs. Now, my notes are always just a click away, and there's no need for a dedicated cloud server for my Memos database.
Copy file name to clipboardExpand all lines: content/docs/advanced-settings/custom-style-and-script.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,23 +2,23 @@
2
2
title: Custom Style and Script
3
3
---
4
4
5
-
In memos, you have the ability to customize your page's style and functionality by using Custom CSS and JavaScript. This feature allows you to personalize your memos experience, making it uniquely your own. In this tutorial, we will walk you through the steps to implement custom styles and scripts on your memos page.
5
+
In Memos, you have the ability to customize your page's style and functionality by using Custom CSS and JavaScript. This feature allows you to personalize your Memos experience, making it uniquely your own. In this tutorial, we will walk you through the steps to implement custom styles and scripts on your Memos page.
6
6
7
7
## Accessing Custom Style and Script
8
8
9
9
To begin, follow these steps:
10
10
11
-
- Log in to your memos account with admin access;
11
+
- Log in to your Memos account with admin access;
12
12
- Open the **Setting** page and select the **System** section;
13
13
- You will see the `Additional style` and `Additional script` inputs;
14
14
15
15
## Customizing with CSS
16
16
17
-
_Custom CSS allows you to change the look and feel of your memos page._
17
+
_Custom CSS allows you to change the look and feel of your Memos page._
18
18
19
19
- In the **Additional style** section, locate the CSS editor.
20
20
- Start writing your CSS code. You can customize various aspects, such as fonts, colors, margins, and more.
21
-
- Use CSS selectors to target specific elements on your page. For example, to change the background color of your memos page, you can use:
21
+
- Use CSS selectors to target specific elements on your page. For example, to change the background color of your Memos page, you can use:
22
22
```css
23
23
body {
24
24
background-color: #f0f0f0;
@@ -28,29 +28,29 @@ _Custom CSS allows you to change the look and feel of your memos page._
28
28
29
29
## Enhancing Functionality with JavaScript
30
30
31
-
_Custom JavaScript allows you to add interactive features and automation to your memos._
31
+
_Custom JavaScript allows you to add interactive features and automation to your Memos._
32
32
33
33
- In the **Additional script** section, locate the JavaScript editor.
34
34
- Write your JavaScript code. You can add interactivity, automate tasks, or even create dynamic content.
35
35
- Ensure your JavaScript code is well-structured and free from errors.
36
36
- For example, you can create a simple alert when the page loads:
37
37
```javascript
38
38
window.onload=function () {
39
-
alert("Welcome to my custom memos page!");
39
+
alert("Welcome to my custom Memos page!");
40
40
};
41
41
```
42
42
- Once you've added your JavaScript, click "Save" to make the changes active.
43
43
44
44
## Troubleshooting and Best Practices
45
45
46
-
Here are some tips to ensure a smooth experience when using custom styles and scripts in memos:
46
+
Here are some tips to ensure a smooth experience when using custom styles and scripts in Memos:
47
47
48
-
- Test your code thoroughly before saving. Incorrect code can break the functionality of your memos page.
48
+
- Test your code thoroughly before saving. Incorrect code can break the functionality of your Memos page.
49
49
- Keep your code organized and commented for easy reference and maintenance.
50
50
- Be cautious with the use of third-party libraries or resources, as they may have compatibility issues.
51
51
52
52
## Final Thoughts
53
53
54
-
With Custom Style and Script in memos, you have the power to make your memos page uniquely yours. Whether you want to tweak the design, add interactivity, or automate tasks, this feature allows you to unleash your creativity. Just remember to be mindful of the code you implement, and enjoy a personalized memos experience.
54
+
With Custom Style and Script in Memos, you have the power to make your Memos page uniquely yours. Whether you want to tweak the design, add interactivity, or automate tasks, this feature allows you to unleash your creativity. Just remember to be mindful of the code you implement, and enjoy a personalized Memos experience.
55
55
56
-
Now, go ahead and start customizing your memos page to suit your preferences and needs. Happy memo-making!
56
+
Now, go ahead and start customizing your Memos page to suit your preferences and needs. Happy memo-making!
The local storage path is relative to your database file. And `memos` supports a dynamic storage path. You can use the following variables in the storage path:
15
+
The local storage path is relative to your database file. And Memos supports a dynamic storage path. You can use the following variables in the storage path:
If you are already using memos with SQLite, you can migrate your data to MySQL with the following command `copydb`:
30
+
If you are already using Memos with SQLite, you can migrate your data to MySQL with the following command `copydb`:
31
31
32
32
```shell
33
33
/usr/local/bin/memos --driver mysql --dsn 'dbuser:dbpass@tcp(dbhost)/dbname' copydb --from sqlite://path_to_your_memos_prod.db
34
34
```
35
35
36
-
This will copy all data from the SQLite database specified by `--from` into the MySQL server. If your memos instance is running in Docker, you can execute this command inside the container.
36
+
This will copy all data from the SQLite database specified by `--from` into the MySQL server. If your Memos instance is running in Docker, you can execute this command inside the container.
You can upload videos up to 32 MB in size. In addition, the video must be compatible with HTML5. See more in [https://www.chromium.org/audio-video/](https://www.chromium.org/audio-video/)
0 commit comments