fastai / nbdev-jekyll-theme

4 stars 10 forks source link

Is this theme available in GH Enterprise? #7

Open lucharo opened 2 years ago

lucharo commented 2 years ago

Hello, I wrote this issue yesterday https://github.com/fastai/nbdev/issues/551#issue-1050839274, I am trying to build a fastai project within a GH Enterprise instance. The page fails to build and I am trying to figure out why.

One hypothesis I have is whether this repo (fastai/nbdev-jekyll-theme) needs to be available in my GH Enterprise for it to be used in projects within the enterprise. Another thing I am wondering about is whether by default GH entreprise comes with a few available themes but all custom themes are not available. Hope that makes sense

lucharo commented 2 years ago

From what I read this is true: https://github.community/t/configure-github-enterprise-for-remote-github-pages-themes/10748/2?u=lucharo

It'd be great to have more documentation on this, as pointed out here: https://github.com/benbalter/jekyll-remote-theme#usage

lucharo commented 2 years ago

Heya, so I have copied this entire theme and put it my docs/ dir (I have changed my settings.ini to write doc to a different dir nbdevdocs). I thought this repo included all the necessary element to build a site that looks like all the other nbdev github pages but I can only get this: image

lucharo commented 2 years ago

I am just wondering what is missing in this repo to enable me to build the site properly

lucharo commented 2 years ago

I have now added sitemap.xml to my docs folder (as pointed in the README in this repo) and not this is what I see, still no theme really but just the rendered README/index.html

image

And I also get this error: image

I get this outcome with the current docs/ structure:

├── Gemfile
├── Gemfile.lock
├── README.md
├── _config.yml
├── _includes
│   ├── archive.html
│   ├── callout.html
│   ├── footer.html
│   ├── google_analytics.html
│   ├── head.html
│   ├── head_print.html
│   ├── image.html
│   ├── important.html
│   ├── initialize_shuffle.html
│   ├── inline_image.html
│   ├── links.html
│   ├── note.html
│   ├── notebook_colab_link.html
│   ├── search_google_custom.html
│   ├── search_simple_jekyll.html
│   ├── sidebar.html
│   ├── tip.html
│   ├── toc.html
│   ├── topnav.html
│   └── warning.html
├── _layouts
│   ├── default.html
│   ├── default_print.html
│   ├── none.html
│   ├── page.html
│   ├── page_print.html
│   └── post.html
├── assets
│   ├── css
│   │   ├── bootstrap.min.css
│   │   ├── boxshadowproperties.css
│   │   ├── customstyles.css
│   │   ├── font-awesome.min.css
│   │   ├── fonts
│   │   │   ├── FontAwesome.otf
│   │   │   ├── fontawesome-webfont.eot
│   │   │   ├── fontawesome-webfont.svg
│   │   │   ├── fontawesome-webfont.ttf
│   │   │   ├── fontawesome-webfont.woff
│   │   │   └── fontawesome-webfont.woff2
│   │   ├── modern-business.css
│   │   ├── printstyles.css
│   │   ├── syntax.css
│   │   ├── theme-blue.css
│   │   └── theme-green.css
│   ├── fonts
│   │   ├── FontAwesome.otf
│   │   ├── fontawesome-webfont.eot
│   │   ├── fontawesome-webfont.svg
│   │   ├── fontawesome-webfont.ttf
│   │   ├── fontawesome-webfont.woff
│   │   ├── glyphicons-halflings-regular.eot
│   │   ├── glyphicons-halflings-regular.svg
│   │   ├── glyphicons-halflings-regular.ttf
│   │   ├── glyphicons-halflings-regular.woff
│   │   └── glyphicons-halflings-regular.woff2
│   ├── images
│   │   ├── colab.svg
│   │   ├── company_logo.png
│   │   ├── company_logo_big.png
│   │   ├── favicon.ico
│   │   └── workflowarrow.png
│   └── js
│       ├── customscripts.js
│       ├── jekyll-search.js
│       ├── jquery.ba-throttle-debounce.min.js
│       ├── jquery.navgoco.min.js
│       ├── jquery.shuffle.min.js
│       └── toc.js
├── bsql.html
├── feed.xml
├── index.html
├── nbdev-theme.gemspec
├── sidebar.json
└── sitemap.xml
lucharo commented 2 years ago

Doing better after removing remote_theme and plugins from _config.yml which I guess was overwriting the raw template or giving an error because the plugin may not be available in my GHE instance. Now I get this but no navbar: image