github-pages

Committing documentation to a git branch (gh-pages)

╄→гoц情女王★ 提交于 2019-12-13 19:04:59
问题 I have generated documentation from javadoc in a /docs directory in the working directory of my git project. I would like to make this documentation available at github.io by committing it to the gh-pages branch of my repository (this will make it automatically available at http://username.github.io/projectname ). Not sure how to go about it, though. If I switch to gh-pages by using git checkout , all the contents of my working directory will be switched to the contents of the gh-pages ,

handlebars not working in production after link click

孤人 提交于 2019-12-13 10:32:10
问题 I am using handlebars and it is working fine in development. When I upload to github-pages, The handlebars template still works if i open directly to the page. But if I go to a page in a link, the handlebars loop doesn't work. Here is my code: <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <script src="../bower_components/handlebars/handlebars.min.js"></script> </head> <div id="content-placeholder"></div> <script id="some-template" type="text/x

Jekyll Not Displaying Layout for Static Page

自作多情 提交于 2019-12-13 10:05:41
问题 in root folder I have designing_minimalist.md --- title: Case Study: Designing Minimalist Interfaces For Teaching New Cognitive Tool Use layout: default --- # Case Study: Designing Minimalist Interfaces For Teaching New Cognitive Tool Use Quantum Pilot is a SHMUP-puzzle about fighting clone ships that mirror how you attack them. (...) default layout: <html> <body style="background-color:black"> <body link="white"> <body vlink="white"> <style> a { text-decoration: none; } </style> <h1><a href=

Automating Jekyll/Github Pages builds based on time [closed]

独自空忆成欢 提交于 2019-12-13 06:46:06
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 months ago . I am working on a project where I list only posts with current date(today). It would be great to have Github(or some other tool) rebuild the site every day at midnight 00:00. Can anyone please tell me how this can be done via Github or any other tools? Travis CI maybe? Any

Octopress deploy to project[gh-pages] css js

可紊 提交于 2019-12-13 05:11:48
问题 I want to setup octopress blog on gh-pages branch of one of my github projects. I follow guidelines from the octopress deployment docs. My project repository url is standard: https://github.com/my_user_name/project_name I follow two scenarios by neither works in some way. Scenario 1: I invoke rake setup_github_pages and supply it with repository location: git@github.com:my_user_name/project_name.git This works well and gh-pages branch is created in my project repo. I do not change Jekill

Jekyll incorrect syntax highlighting

谁都会走 提交于 2019-12-13 03:39:13
问题 I want to have correct syntax highlighting for a small snippet of C code. I'm currently using the following tags: {% highlight c %} ... code snippet ... {% endhighlight %} When I serve my page locally using "jekyll serve" everything works as expected. However, when I do a git push and view the page on the web the results of the syntax highlighting are incorrect. A number of the lines incorrectly appear as comments. If I inspect the source locally, I see the following: <code class="language-c"

How to fix the responsive design from github page and broken images?

狂风中的少年 提交于 2019-12-13 03:37:50
问题 I have a portfolio site deployed at github pages and I used jekyll to create it. The issues that I have : 1)The responsive design at mobile it's not right and I also can't see footer, 2) I have broken images that doesn't load i have changed the path several times but still doesn't work i guess I'm out of options?Any suggestions to fix these issues? My site : https://lazospap.github.io/LazPap/ and my repo : https://github.com/LazosPap/LazPap . 回答1: To make sure that the image urls are found,

Jekyll and Disqus: cannot get disqus to appear on site

99封情书 提交于 2019-12-12 19:13:19
问题 I am using Github Pages' Jekyll integration. I added the Disqus configuration today but Disqus does not appear on my posts. I have added the Disqus script to a file _includes/disqus.html and added {% include disqus.html %} to _layouts/default.html. You may view this work at my https://github.com/shaneoston72/shaneoston72.github.io Thank you for any help you can offer. 回答1: Ok, we'll need to do a few things here: At the end of your file _layouts/default.html what I see is: </div> {% include

Angular 4 app works on local but does not load in Github

拜拜、爱过 提交于 2019-12-12 18:35:57
问题 This my first attempt at creating an angular 4 application. I have created a very simple angular 4 app. It loads correctly on my local but when I deploy to github, only the index.html loads. The component files are not binding. Things that I have tried - Ensured I have mapped the docs folder to github. I have tried deploying the dist folder instead of source. I have tried changed the base-href value to ".", "/", " ". This is the link to my page: https://itsy-bitsy.github.io/adventures/ and my

Background highlight text in a code block?

不问归期 提交于 2019-12-12 12:13:14
问题 My goal is to be able to display something like this: I want to background highlight a piece of code inside a code block that already has syntax highlighting . I want to do this on a markdown file I have on Github that is hosted on Github Pages (can use kramdown markdown, html, css). I am aware that you can have syntax highlighting inside a code block doing something like this: ```java int foo (void) { int i; } ``` I am also aware that I can background highlight text inside a code block by