Skip to content

Relative paths #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Hutchy68 opened this issue Sep 24, 2014 · 1 comment
Open

Relative paths #1

Hutchy68 opened this issue Sep 24, 2014 · 1 comment
Labels

Comments

@Hutchy68
Copy link
Owner

Need to solve relative paths in gh-pages deployment.

@Hutchy68
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant