Giter VIP home page Giter VIP logo

notion-website-template's People

Contributors

timovv avatar trost123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

notion-website-template's Issues

Run loconotion times out

[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?

Anchor links are not working

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.

Example website?

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".

Error: Process completed with exit code 1

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"?

Notion pages are not rendered properly

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:

Screenshot 2024-01-05 at 11 47 29 AM

Published page through notion-website-template:

Screenshot 2024-01-05 at 11 48 48 AM

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 :)

Build Loconotion docker image failed.

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.

Error in "Push to Github Pages" part of script

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.

Tags with href=None

All my tags with href have it set to None. This includes both icons and javascript scripts.

error

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.

Build script flakiness

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:

  • For some reason either Loconotion isn't outputting where it should, or;
  • The Docker volume is not mounting as it should.

May I ask you a question? Error: Process completed with exit code 128.

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.

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.