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: docs/content/4.api/3.configuration.md
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ The watcher is a development feature and will not be included in production.
81
81
82
82
Define different sources for contents.
83
83
84
-
Contents can be located in multiple places, in multiple directories, or in remote git repositories.
84
+
Contents can be located in multiple places, in multiple directories, or in remote git repositories thanks to [`unstorage`](https://unstorage.unjs.io/).
base: resolve(__dirname, 'content-fa') // Path for source directory
102
-
}
102
+
},
103
+
github: {
104
+
prefix: '/blog', // Prefix for routes used to query contents
105
+
driver: 'github', // Driver used to fetch contents (view unstorage documentation)
106
+
repo: "<owner>/<repo>",
107
+
branch: "main",
108
+
dir: "content", // Directory where contents are located. It could be a subdirectory of the repository.
109
+
// Imagine you have a blog inside your content folder. You can set this option to `content/blog` with the prefix option to `/blog` to avoid conflicts with local files.
0 commit comments