Comments (9)
@yavorg I experienced the same issue but didn't realise there was a newer version of the theme. That issue is fixed in newer versions.
This happened to me because I had both github-pages
and just-the-docs
in Gemfile
. just-the-docs
is downgraded to the latest version that's compatible with the version of Jekyll supported by github-pages
. I created #117 to prevent future users from doing the same.
I'm not sure if that's what happened to you. But if it is, have a look at my Gemfile and _config.yml.
PS: What a small world! I think we overlapped at Auth0 -- your username rings a bell. :)
from just-the-docs.
Thanks for your help @gnarea... what a small world indeed!
Thanks for the pointer, I am now referencing the theme as remote_theme: "pmarsceill/[email protected]"
in _config.yml
as you suggested, instead of the Gemfile
. This actually fixed my other issue #113, but I still can't get the nav_exclude
to work.
from just-the-docs.
I'm glad that helped @yavorg!
It's weird that didn't fix the nav_exclude
issue. I'm using nav_exclude: true
in a few places (like this page) and it works as expected with the latest version of the theme (it didn't work with v0.1.6).
Just in case, make sure it isn't a caching issue. Many of the issues I've had with the sidebar navigation were fixed with a Shift + Refresh š
Good luck! š¤
from just-the-docs.
@yavorg are you still experiencing this issue? I'm struggling to reproduce it with the latest version of the theme.
from just-the-docs.
@pmarsceill still running into this even with 0.2.4
Gemfile
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
_config.yml
remote_theme: 'pmarsceill/[email protected]'
repository: '...'
title: '...'
description: '...'
permalink: pretty
# "Just the Docs" theme
search_enabled: true
aux_links:
"...":
- "..."
"...":
- "..."
Troubleshooting steps tried:
- Deleted
Gemfile.lock
and reinstalled gems - Deleted
_site
before testing locally - Tried Incognito window
from just-the-docs.
Is your site on GitHub publicly? Iād be curious to clone it down and try to reproduce myself.
from just-the-docs.
@pmarsceill the reason this issue exists (and I'm also experiencing it), is that _includes/nav.html
is not recursive, for some reason (and that is why this whole nonsense with "grandparents" is even necessary, but that is a whole other problem), and only checks the top level item.
e.g. in your own documentation you can hide the "UI Components" menu item, but not its child - "Typography".
Furthermore, nav_exclude
is completely ignored by the breadcrumbs and the TOC.
This, in my opinion, is the best and most versatile documentation theme for jekyll right now. And I've checked hundreds of them. So, props to you guys!
Let's hope it gets even better with time ;)
As for me, I'm seriously considering to start cranking out pull requests.
from just-the-docs.
I think this ticket should be re-opened (and then closed upon merging: #282 which fixes it for child navigation).
from just-the-docs.
For anyone encountering this issue in 2021 and your theme version contains merge #282, and no other solutions have worked for you, here's what fix worked for me (works for parent and all sub pages, and the table of contents)
In the _includes/nav.html
file, find this:
{%- assign titled_pages = include.pages
| where_exp:"item", "item.title != nil" -%}
Change to this:
{%- assign titled_pages = include.pages
| where_exp:"item", "item.title != nil and item.nav_exclude != true" -%}
from just-the-docs.
Related Issues (20)
- Mobile Menu Not Working HOT 5
- Callouts not rendering HOT 3
- nav_external_links > opens_in_new_tab: true doesn't open the link in a new tab HOT 4
- Add support for additional diagram languages HOT 4
- Dependency error HOT 3
- Navbar highlighting depends on URL having `.html` extension HOT 1
- light vs dark theme based on device setting HOT 1
- Add in-page right sidebar HOT 3
- `just-the-docs.com` copyright is out of date HOT 4
- big HOT 1
- Incorrect positioning of clickable area for navigation links in Safari/macOS HOT 6
- Add support for Lunr pre-built indexes HOT 3
- Zion LLC HOT 1
- Support CTRL+k shortcut for triggering the search input HOT 2
- Organize pages using IDs HOT 1
- Option to define groups with front matter HOT 3
- Log 2023-11-18 00_48_10.txt
- Searching _posts HOT 1
- Indented Markdown diff does not handle empty newlines HOT 2
- t
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from just-the-docs.