Giter Club home page Giter Club logo

Comments (9)

pjaudiomv avatar pjaudiomv commented on May 17, 2024

I am pointing to pmarsceill/just-the-docs in my yml, if i fork and remove dark-mode-preview.scss and test that way it then builds fine.

from just-the-docs.

pmarsceill avatar pmarsceill commented on May 17, 2024

Hey @pjaudiomv, which installation method did you use to install this theme... Did you install via remote_theme, ruby gems, or by forking this repo?

Can you post the contents of your _config.yml?

from just-the-docs.

pjaudiomv avatar pjaudiomv commented on May 17, 2024

remote_theme

`title: Yap
description: Yap Documentation
baseurl:
url: "//yap.bmlt.app"
remote_theme: "pmarsceill/just-the-docs"
sass:

Load dependancies

load_paths:
- node_modules/

permalink: pretty
exclude: ["node_modules/", ".gemspec", ".gem", "Gemfile", "Gemfile.lock", "package.json", "script/", "LICENSE.txt", "lib/", "bin/", "README.md", "Rakefile"]`

from just-the-docs.

pjaudiomv avatar pjaudiomv commented on May 17, 2024

shoot that was my fork one.

_config.yml.txt

from just-the-docs.

pjaudiomv avatar pjaudiomv commented on May 17, 2024

this is a link to my current website repo, (with config pointing to my fork with dark-mode-preview.scss removed so it could work) https://github.com/bmlt-enabled/yap/tree/master/docs

from just-the-docs.

pmarsceill avatar pmarsceill commented on May 17, 2024

@pjaudiomv

It looks like you've forked this repo and then set a remote theme to this repo at the same time. In reality you should be choosing one or the other or else Jekyll gets confused.

You forked this repo a few weeks ago, then you set the remote_theme to use the lastest theme version which is confusing Jekyll because it's looking for variables that don't exist yet on your fork because it hasn't been kept up to date and really you shouldn't need to keep it up to date using remote_theme.

To fix this either update your fork (and remove remote_theme and use the theme files from your repo) or delete all the theme files from your repo (EVERYTHING except for your markdown content in /docs and search index in /assets/js) and keep using the remote_theme (see https://github.com/pmarsceill/jtd-remote as an example).

You'll also need to update your _config.yml and remove all the theme specific stuff... It should look more like:

title: Yap
description: Yap Documentation
baseurl:
url: "//yap.bmlt.app"
remote_theme: pmarsceill/just-the-docs
permalink: pretty

Hope this helps.

from just-the-docs.

pjaudiomv avatar pjaudiomv commented on May 17, 2024

awesome, thank you for your patience. one other question. How would you recommend i test locally or at the very least update my search index.

from just-the-docs.

pmarsceill avatar pmarsceill commented on May 17, 2024

Your search index will be updated every time your site is built.

If you want to run this locally you can use the remote theme gem on your machine to mimic how GitHub pages works, or you can install this theme using the ruby gem method (and use theme instead of remote_theme) and run Jekyll locally.

from just-the-docs.

pjaudiomv avatar pjaudiomv commented on May 17, 2024

thanks again for your help with this, I realize now that this was more of a general jekyll question and not directly related to your theme. So thanks again.

from just-the-docs.

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.