blogg.be v0.2.2-test1234
Blogg.be
Deeply in pure development stage now. Works very bad, needs caching, etc, etc.
(Later it will be) Blogging platform on which its contents (blogs) are stored on user's cloud storage and markdown files.
It also works as a tool, allowing you to use it for your own websites. It outputs NextJS page, making it very easy to host a blog with a NextJS project.
Currenly, it only works with OpenDrive cloud storage provider. Unfortunatelly it's impossible to make app on top of iCloud in such a way. But looks like it possible to make it work with Dropbox, - maybe it will be supported later.
Usage
yarn add blogg.be
Then create a page in your NextJS project (supposedly you already have NextJS project):
touch pages/blog.tsx
Then use it for your pages/blog.tsx
:
import Blog from 'blogg.be'
export default Blog('YOUR_OPENDRIVE_FOLDER_ID')
You also need to give this page all the urls under /blog
, by placing this in your now.json
config:
{
"version": 2,
"routes": [{ "src": "/blog(.*)", "dest": "/blog?url=$1" }]
}
That's all! You can now navigate to your http://localhost:3000
or deploy it with now
, with your own domain etc., - you'll be able to navigate your markdown files in that folder you share, but it will look like a blog!
Contribution
While developing this library, you need to try it with your NextJS project without publishing it. First, run in the library folder:
yarn link
Then in your NextJS project run this:
yarn link blogg.be
So your import Blog from 'blogg.be'
will be pointing to your local library.
Don't hesitate to fork the repository, andd changes, and make Pull Requests!
If you have more access... Huh
After you'll make changes to the library, you may upload it on npm.
yarn build
to build generate newdist
files with js and typescript declarations.release
(install this package globally byyarn add release
) to generate changelog.npm publish
to finally deploy updated sources to npm.
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago