Giter Club home page Giter Club logo

My personal blog. Powered by GatsbyJS and Notion

This blog uses content from notes made in notion.so and automatically deploys on github pages.

You can read my blog post about this, here

To run locally

Copy the file .env.example to .env and fill the NOTION_TOKEN and NOTION_ROOT_PAGE_ID variable.

Follow this to see how to get your notion token.

The NOTION_ROOT_PAGE_ID is the ID of the root note of your blog. The root note is a regular notion note which indexes all the posts you want to import in the blog, therefore, it should only list links to other notes.

If the link of your root note is this https://www.notion.so/Blog-83f4047341534d6bb846b1f561a13173, the id is this: 83f4047341534d6bb846b1f561a13173

Then you can do yarn import-notion-posts to import post from notion to ./content/blog.

Finally, you can do yarn develop to run the blog locally.

To manually deploy to github pages

yarn import-notion-posts to import the posts from notion.

yarn deploy to build and publish the public directory to github page.

To deploy on github pages, you have to use your username as repository name. See here for more information.

If you don't want to deploy to github pages, you can host the content of the public directory anywhere you want.

Automatically deploy to github pages

If you push this repository to github, it will use the github action stored in .github/workflows/deploy.yml and automatically import your post from notion and build the blog.

You have to let github know your NOTION_TOKEN and NOTION_ROOT_PAGE_ID. To do so, fill the info as github secret.

The github action is configured to import the blog posts and rebuild the blog either:

  • every day at midnight UTC
  • each time you push on master
  • if you manually trigger the action on github

Posts

To make the system work, you have to fill the following elements on your blog posts: exampel

yehudi-dev's Projects

continue-vscode-plugin icon continue-vscode-plugin

⏩ The easiest way to code with any LLM—Continue is an open-source autopilot for VS Code and JetBrains

course_codes icon course_codes

VNPY 2020 Python数字货币量化交易视频教程课程代码和资料

gpt-crawler icon gpt-crawler

Crawl a site to generate knowledge files to create your own custom GPT from a URL

librechat icon librechat

Enhanced ChatGPT Clone: Features OpenAI, Assistants API, Azure, GPT-4 Vision, Mistral, Bing, Anthropic, OpenRouter, Google Gemini, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. More features in development

pybit icon pybit

Python3 API connector for Bybit's HTTP and Websockets APIs.

ragflow icon ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.

serverstatus icon serverstatus

云探针、多服务器探针、云监控、多服务器云监控,演示: https://tz.cloudcpp.com/

termux-boot icon termux-boot

Termux add-on app allowing programs to be run at boot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.