Code Monkey home page Code Monkey logo

Comments (3)

mkasberg avatar mkasberg commented on May 25, 2024

I cannot reproduce this.

$ jekyll --version
jekyll 4.3.3

$ jekyll new test-exclude-md
Running bundle install in /home/mkasberg/code/test-exclude-md... 
New jekyll site installed in /home/mkasberg/code/test-exclude-md. 

$ cd test-exclude-md 

$ echo "testing" > README.md

$ bundle exec jekyll build
Configuration file: /home/mkasberg/code/test-exclude-md/_config.yml
            Source: /home/mkasberg/code/test-exclude-md
       Destination: /home/mkasberg/code/test-exclude-md/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
       Jekyll Feed: Generating feed for posts
                    done in 0.374 seconds.
 Auto-regeneration: disabled. Use --watch to enable.

$ ls _site # NOTE README.md gets created because it's not yet excluded.
404.html  about  assets  feed.xml  index.html  jekyll  README.md

$ echo "exclude:
dquote>   - README.md" > _config.yml 

$ tail -n4 _config.yml 
exclude:
  - README.md

$ bundle exec jekyll build
Configuration file: /home/mkasberg/code/test-exclude-md/_config.yml
            Source: /home/mkasberg/code/test-exclude-md
       Destination: /home/mkasberg/code/test-exclude-md/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
       Jekyll Feed: Generating feed for posts
     Build Warning: Layout 'post' requested in _posts/2024-05-23-welcome-to-jekyll.markdown does not exist.
     Build Warning: Layout 'default' requested in 404.html does not exist.
     Build Warning: Layout 'page' requested in about.markdown does not exist.
     Build Warning: Layout 'home' requested in index.markdown does not exist.
                    done in 0.327 seconds.
 Auto-regeneration: disabled. Use --watch to enable.

$ ls _site # NOTE exclude works correctly and removes README.md.
404.html  about  feed.xml  index.html  jekyll

Since I don't believe this is a bug with Jekyll, here are some other things you might check:

  • Run jekyll clean, or otherwise delete README.md from _site and see whether it gets re-created.
  • Ensure your _config.yml is valid yaml and your exclude: section is formatted correctly.
  • Ensure there are no other errors that prevent your jekyll build from running.

from jekyll.

jbleuzen avatar jbleuzen commented on May 25, 2024

Another thing that you can check :

  • You have the keyword exclude only once in your _config.yml.

I watched the issue because I thought I had the issue but with @mkasberg test I don't reproduce. After checking my conf I had the keyword exclude twice...

from jekyll.

mattr- avatar mattr- commented on May 25, 2024

@axelfontaine Please feel free to reopen after checking the above comments to confirm you don't have a double exclude key in your config. If you do reopen this, you must provide a reproduction test case since we can't confirm your issue. Thanks!

from jekyll.

Related Issues (20)

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.