Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ToC is not working #1090

Closed
real2u2l8 opened this issue Jun 14, 2023 · 7 comments
Closed

ToC is not working #1090

real2u2l8 opened this issue Jun 14, 2023 · 7 comments
Labels
stale No activity

Comments

@real2u2l8
Copy link

Description

I aleady run npm install build and bundle update also nodejs, npm is latest but ToC is not working

Operations you have already tried

npm install && npm run build bundle update
image
image
image

anyway that mean is problems something?
image

Logs/Screenshots

image

check my blog on here

https://real2u2l8.github.io/posts/%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0%EC%97%90-%EC%95%9E%EC%84%9C-%EB%B3%B4%EC%95%88-%EA%B4%80%EB%A0%A8/

@wabol
Copy link

wabol commented Jun 14, 2023

I have the same question, I have been deleting the repo and fork again, it also does not work.

@hahaha1110
Copy link

i think your /assets/js/dist/ ~~.min.js is wrong or dosen't exist

if your error like this ,

- _site/404.html
  *  internal script /assets/js/dist/page.min.js does not exist (line 1)
- _site/about/index.html
  *  internal script /assets/js/dist/page.min.js does not exist (line 1)
- _site/archives/index.html
  *  internal script /assets/js/dist/misc.min.js does not exist (line 1)
- _site/categories/git/index.html
  *  internal script /assets/js/dist/misc.min.js does not exist (line 1)
- _site/categories/index.html
                  .
                  .
                  .
                  .
HTML-Proofer found 10 failures!
Error: Process completed with exit code 1.

after run npm install and run this script

NODE_ENV=production npx rollup -c --bundleConfigAsCjs

and remove or comment out assets/js/dist of the .gitignore file like this

image

then, commit & push to git

@wabol
Copy link

wabol commented Jun 15, 2023

i think your /assets/js/dist/ ~~.min.js is wrong or dosen't exist

if your error like this ,

- _site/404.html
  *  internal script /assets/js/dist/page.min.js does not exist (line 1)
- _site/about/index.html
  *  internal script /assets/js/dist/page.min.js does not exist (line 1)
- _site/archives/index.html
  *  internal script /assets/js/dist/misc.min.js does not exist (line 1)
- _site/categories/git/index.html
  *  internal script /assets/js/dist/misc.min.js does not exist (line 1)
- _site/categories/index.html
                  .
                  .
                  .
                  .
HTML-Proofer found 10 failures!
Error: Process completed with exit code 1.

after run npm install and run this script

NODE_ENV=production npx rollup -c --bundleConfigAsCjs

and remove or comment out assets/js/dist of the .gitignore file like this

image

then, commit & push to git

I use the GitHub pages and action auto deploy to pages, how to run the script 'NODE_ENV=production npx rollup -c --bundleConfigAsCjs'

Thank you so much

wabol pushed a commit to wabol/wabol.github.io that referenced this issue Jun 15, 2023
wabol pushed a commit to wabol/wabol.github.io that referenced this issue Jun 15, 2023
@real2u2l8
Copy link
Author

i think your /assets/js/dist/ ~~.min.js is wrong or dosen't exist

if your error like this ,

- _site/404.html
  *  internal script /assets/js/dist/page.min.js does not exist (line 1)
- _site/about/index.html
  *  internal script /assets/js/dist/page.min.js does not exist (line 1)
- _site/archives/index.html
  *  internal script /assets/js/dist/misc.min.js does not exist (line 1)
- _site/categories/git/index.html
  *  internal script /assets/js/dist/misc.min.js does not exist (line 1)
- _site/categories/index.html
                  .
                  .
                  .
                  .
HTML-Proofer found 10 failures!
Error: Process completed with exit code 1.

after run npm install and run this script

NODE_ENV=production npx rollup -c --bundleConfigAsCjs

and remove or comment out assets/js/dist of the .gitignore file like this

image

then, commit & push to git

Unfortunately, my repo already have .js files also nodejs, npm is latest..
image

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale No activity label Jul 16, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2023
@Xallt
Copy link

Xallt commented Nov 6, 2023

I don't know if this is helpful, but took some time for me to figure out
In https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_includes/toc.html you can see how at least an H2 / H3 heading has to be present for the Table of Contents to be summoned. If your post has only H1 headings, no Table of Contents is created

@huccihuang
Copy link

I don't know if this is helpful, but took some time for me to figure out In https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_includes/toc.html you can see how at least an H2 / H3 heading has to be present for the Table of Contents to be summoned. If your post has only H1 headings, no Table of Contents is created

thanks, u help me a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale No activity
Projects
None yet
Development

No branches or pull requests

5 participants