Hutchy68 / coding-std-new

Replacement/Refresh of Joomla! Coding Standards
MIT License
1 stars 1 forks source link

Relative paths #1

Open Hutchy68 opened 9 years ago

Hutchy68 commented 9 years ago

Need to solve relative paths in gh-pages deployment.

Hutchy68 commented 9 years ago

The main issue is this:

To get docpad to work with gh-pages, you have to hardcode the local CSS. e.g. style.css, rainbow.css, etc and the local scripts.

            styles: [
                "//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"
                "//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"
                "//hutchy68.github.io/coding-std-new/styles/style.css"
                "//hutchy68.github.io/coding-std-new/styles/rainbow.css"
                "//hutchy68.github.io/coding-std-new/styles/toc.css"
            ]

            # Scripts
            scripts: [
                "//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"
                "//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"
                "//hutchy68.github.io/coding-std-new/scripts/script.js"
                "//hutchy68.github.io/coding-std-new/scripts/jquerywidget.js"
                "//hutchy68.github.io/coding-std-new/scripts/tocify.js"
                "//hutchy68.github.io/coding-std-new/scripts/tocbuild.js"
            ]

Should really look like

            styles: [
                "//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"
                "//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"
                "styles/style.css"
                "styles/rainbow.css"
                "styles/toc.css"
            ]

            # Scripts
            scripts: [
                "//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"
                "//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"
                "scripts/script.js"
                "scripts/jquerywidget.js"
                "scripts/tocify.js"
                "scripts/tocbuild.js"
            ]

which should create relative links to scripts and styles in a top level to the web pages locations.