I have a HTML file, along with some JS and CSS files, in a project I have been working on, and am trying to put them onto my GitHub account. I created a new repo, but when I tried to add the files (some are in folders), I didn't know how to. The website isn't very helpful and I'm really stuck. Could anyone tell me how to upload them? I'm new to GitHub and so far very confused by it.
Thanks a lot in advance xx
If you are using windows, try github for windows application. It's easy way to start using github if you are new to it.
Related
I made a simple Openprocessing sketch in javascript using PJ5.js, which can be found here: https://www.openprocessing.org/sketch/522642
However, I want to import some different libraries, which the free version of openProcessing doesn't allow. So my next step was to host the sketch using the free github.io pages.
However, after countless hours of searching, I can't really find a tutorial on how to do this. Anyone has a clue on how to host this javascript sketch on github.io instead of on Openprocessing? Is this even possible?
Thanks in advance! :)
You can host static pages on github and the setup is really simple. Just go to Github pages, scroll down and you will find all the info you need. However you will have to create an html page to run your script. You can't just paste your javascript and run it.
so I know this is very specific, but since I am mostly new to programming on websites, I hope you can help me :)
I am trying to integrate the jekyll-lunr-js-search (https://github.com/slashdotdash/jekyll-lunr-js-search) into the minimal-mistakes theme and having a few problems with it.
I followed the instructions for the search but already had problems there, since it seems mmistakes is already prepped to be on github-pages:
There are just gh-pages conform plugins in the Gemfile.
There is no _plugins folder
The plugins used are in the /assets/js/plugins folder and just called via package.json where they are uglifyjs(ed)
So since I do not know much about the technology, I guess I would have to uglifyjs the jekyll-lunr-js-search js files too, but I am did not find a way to get this to work. There has no index.json been created.
Thanks for the help!
Okay, so what I found was this link which makes the search easy in Jekyll on Github Pages.
It does not really solve the problem at hand but it gives me the beginning I can improve.
Wrong file location
The README.md file at jekyll-lunr-js-search mentions that you must place your build/jekyll_lunr_js_search.rb inside the _plugins folder in the root of your Jekyll site.
Plugins on GitHub Pages
However, all GitHub Pages sites are generated using the --safe option to disable custom plugins for security reasons. Unfortunately, this means Jekyll plugins won’t work if you’re deploying to GitHub Pages.
(You can still use GitHub Pages to publish your site, but you’ll need to convert the site locally and push the generated static files to your GitHub repository instead of the Jekyll source files.)
You can only use these plugins on GitHub Pages.
Helpful resources
https://jekyllrb.com/docs/plugins/
https://pages.github.com/versions/
http://rayhightower.com/blog/2016/01/04/how-to-make-lunrjs-jekyll-work-together/
I am creating a HTML page where I need to count of files present in the specific folder in same project package, I tried to write the code in javascript but have not succeeded yet. Most of the question threads mention about "ActiveXObject" to be used but that itself does not work for me. Reference: JavaScript: Read files in folder Can anyone help me in achieving this? Please Suggest any Idea if this can't be achieved only by javascript lang.
HTML + JavaScript in your case is frontend technologies unless you use javascript as backend(nodejs) you won't be able to read project folder contents.
I want to create a sitemap.xml for all the links specified through the javascript file.
The online sitemap generators aren't crawling through my website properly and generating the sitemap.xml file with the 100s of links generated through the JS file(by using the data coming from the JSONs), and so is the case with 'sitemap-xml plugin' for grunt.
Can somebody suggest me if there is any easy way to implement this?
I wrote a custom grunt task that did the trick. Only that, I had to rerun the task everytime I added new links. But still this works for me! Thanks for the comments!
I'm new to WTP so excuse me if the solution to this is obvious. When i define and use a class from within the same file i get nice code assist help, i also get code assist for classes from the standard libraries. Unortunatly, when i try to use code and declarations from one file in another file i no longer get t he nice code assist features. I have searched the web and tried a couple of things, making shoure JS is enabled for the project, making sure the folder the scripts are in is added to the JS source folder list and even trying making a new folder with the decleration files in and adding it as a library. I would really like ot get this feature working so any help would be appreciated.
you can try spket IDE. after install, you need to config javascript profile to get code assist works for you.