Giter Club home page Giter Club logo

Comments (6)

rstacruz avatar rstacruz commented on September 26, 2024

Nice, anyone got a PR for this?

from flatdoc.

mksplg avatar mksplg commented on September 26, 2024

The resource links would need to be changed to github's raw URLs, e.g. https://raw.githubusercontent.com/rstacruz/flatdoc/gh-pages/v/0.8.1/flatdoc.js as links currently used in the template are redirected to http://ricostacruz.com which does not support https.

Unfortunately, ghbtns.com used in the template also does not support https yet, see mdo/github-buttons#61.

from flatdoc.

rstacruz avatar rstacruz commented on September 26, 2024

Oh, right. Forgot about that — gh-pages doesn't support HTTPS.

However, IIRC GitHub was pretty clear on not using https://raw.githubusercontent.com on production sites. Perhaps there isn't a good way around this afterall, unless you host it yourself.

from flatdoc.

mksplg avatar mksplg commented on September 26, 2024

You're right, https://raw.githubusercontent.com serves everything with content-type text/plain.

Wouldn't https on gh-pages work if http://ricostacruz.com supported it or is that not supported by the redirect? At least if the page is accessed with https://user.github.io/repository without redirects, https works fine.

from flatdoc.

rstacruz avatar rstacruz commented on September 26, 2024

Google Fonts is now loaded via HTTPS. c1dbf23

from flatdoc.

rstacruz avatar rstacruz commented on September 26, 2024

rawgit.com offers a free CDN for git repos, and it support HTTPS. You should be able to use this URL:

https://cdn.rawgit.com/rstacruz/flatdoc/v0.8.6/flatdoc.js

from flatdoc.

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.