timovv / notion-website-template Goto Github PK
View Code? Open in Web Editor NEWMake a personal website using Notion and GitHub Pages
Make a personal website using Notion and GitHub Pages
After I upload my pages, the latex equations can't be rendered anymore, though it did work previously. May I ask if there is a fix to this? Thank you.
Hello,
Thanks for building this!
I'm getting the error "Process completed with exit code 1." in the Push to Github Pages part of the script, while initializing a blog for the first time.
The whole error:
[1](https://github.com/JCLaHoot/notion-blog-test/actions/runs/3843393291/jobs/6545613215#step:7:1)
Run git config --global user.name "github-actions[bot]"
[2](https://github.com/JCLaHoot/notion-blog-test/actions/runs/3843393291/jobs/6545613215#step:7:2)
git config --global user.name "github-actions[bot]"
[3](https://github.com/JCLaHoot/notion-blog-test/actions/runs/3843393291/jobs/6545613215#step:7:3)
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
[4](https://github.com/JCLaHoot/notion-blog-test/actions/runs/3843393291/jobs/6545613215#step:7:4)
[5](https://github.com/JCLaHoot/notion-blog-test/actions/runs/3843393291/jobs/6545613215#step:7:5)
GIT_DEPLOY_DIR=dist/site \
[6](https://github.com/JCLaHoot/notion-blog-test/actions/runs/3843393291/jobs/6545613215#step:7:6)
GIT_DEPLOY_BRANCH=gh-pages \
[7](https://github.com/JCLaHoot/notion-blog-test/actions/runs/3843393291/jobs/6545613215#step:7:7)
GIT_DEPLOY_REPO="https://***@github.com/JCLaHoot/notion-blog-test.git" ./deploy.sh
[8](https://github.com/JCLaHoot/notion-blog-test/actions/runs/3843393291/jobs/6545613215#step:7:8)
shell: /usr/bin/bash -e {0}
[9](https://github.com/JCLaHoot/notion-blog-test/actions/runs/3843393291/jobs/6545613215#step:7:10)
Deploy directory 'dist/site' does not exist. Aborting.
[10](https://github.com/JCLaHoot/notion-blog-test/actions/runs/3843393291/jobs/6545613215#step:7:11)
Error: Process completed with exit code 1.
Is there something that I need to do on my end that isn't covered in the README?
EDIT:
I managed to run the script* ONCE* by adding the deploy.sh file to the gh-pages branch. I have to re-copy deploy.sh to the gh-pages branch if I want to update the content again.
Timo, thank you for creating this repo. It simplifies the process of working with Loconotion.
But the deployment has recently stopped working, could you update to Node.js 16?
Error message:
Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
Hi this is brilliant. Just a suggestion: would be really nice to have a sample of the final result in the readme, linked as a "demo".
Hi. Thanks for your work! Do you plan to fix "Error: Process completed with exit code 1" that occure after run the action "Publish Notion website to GitHub Pages"?
[01:07:45] CRITICAL Timeout waiting for page content to load, or no content found. Are you sure the page is set to public?
any ideas?
Hi @timovv , idk why just do like your format but encounter this problem:
ERROR: failed to solve: process "/bin/sh -c wget --no-verbose -O /tmp/chrome.deb [https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb](https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_$%7BCHROME_VERSION%7D_amd64.deb) && apt install -y /tmp/chrome.deb && rm /tmp/chrome.deb" did not complete successfully: exit code: 8
Service 'loconotion' failed to build : Build failed
Error: Process completed with exit code 1.
Hi!
It seems anchor links to different sections of the page are not working. Tested on Opera GX and Chrome.
Actions work fine, finish building successfully, but when accessing the page and clicking on the anchor link, it does nothing. Instead of redirecting the page to the anchored section, nothing happens, except the website link changes to something like fabulani.github.io/#dee923b0e067492fbb4bb2098086400e
. In my notion page, this would show as:
manschein.notion.site/manschein/Fabiano-Junior-Maia-Manschein-72bec1b8f9f34de987802bbf397d996c #dee923b0e067492fbb4bb2098086400e
Of course, the anchors work in the notion editor and the online page, just not on the Github.io generated static page. Not sure if this is a problem here or with Loconotion, so I posted an issue on both, I hope that's ok.
May I ask you a question?
I'm in github Action
Error Push to GitHub Pages
Run git config --global user.name "Final233"
git config --global user.name "Final233"
git config --global user.email "[email protected]"
GIT_DEPLOY_DIR=dist/site \
GIT_DEPLOY_BRANCH=gh-pages \
GIT_DEPLOY_REPO="https://***@github.com/Final233/notion-website-loconotion.git" ./pages_repo/deploy.sh
shell: /usr/bin/bash -e {0}
fatal: not a git repository (or any of the parent directories): .git
Error: Process completed with exit code 128.
All my tags with href have it set to None
. This includes both icons and javascript scripts.
I followed the instructions from Loconotion readme to edit the site.toml
file and added all the files to the root of the repo. Then, I triggered the github action Publish Notion website to GitHub Pages. This is my site.toml
:
# This is the .toml file passed to Locomotion.
# For information on the different settings available, and an example file,
# see the Locomotion README: https://github.com/leoncvlt/loconotion/blob/master/README.md
# DO NOT CHANGE THIS VALUE. The deploy script relies on the site being deployed to the
# "site" directory.
name = "site"
# This page should be the root of your website. It's important.
page = "https://manschein.notion.site/Fabiano-Junior-Maia-Manschein-72bec1b8f9f34de987802bbf397d996c?pvs=4"
# optionally apply notion's dark mode, remove the line below to use the default light mode
theme = "dark"
## Global Site Settings ##
# this [site] table defines override settings for the whole site
# later on we will see how to define settings for a single page
[site]
## Custom Element Injection ##
# defined as an array of tables [[site.inject]], followed by 'head' or 'body' to set
# the injection point, followed by name of the tag to inject
# each key in the table maps to an atttribute in the tag
# e.g. the following injects this tag in the <head>:
# <link href="favicon-16x16.png" rel="icon" sizes="16x16" type="image/png"/>
[[site.inject.head.link]]
rel="icon"
sizes="16x16"
type="image/png"
href="/favicon-16x16.png"
[[site.inject.head.link]]
rel="icon"
sizes="32x32"
type="image/png"
href="/favicon-32x32.png"
[[site.inject.head.link]]
rel="apple-touch-icon"
sizes="180x180"
type="image/png"
href="/apple-touch-icon.png"
[[site.inject.head.link]]
rel="manifest"
href="/site.webmanifest"
# the following injects this tag in the in the <body>:
# <script src="custom-script.js" type="text/javascript"></script>
# note that all href / src files are copied to the root of the site folder
# regardless of their original path
[[site.inject.body.script]]
type="text/javascript"
src="/init.js"
Any suggestions on how to fix this? I'm at a loss.
Sometimes the build script fails on the deploy step, complaining that the dist/site
directory does not exist. I can think of two possible reasons:
Hi @timovv: First of all, thank you for this work. I was using notion-website-template to host my personal website for quite some time. And recently, I pulled the latest code (that has a fix for chromedriver docker error) and re-deployed my site. Now, the website layout is not the same as before.
Original template from notion:
Published page through notion-website-template:
This change has happened only after I pulled the new code. Is this supposed to happen? It would be great if you could share some insight or fix for this.
Thanks in advance :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.