I need help with creating a dedicated folder for my images in my Website repository, and heres how it looks right now.Image of my repository rigt now
Side-Note: I'm not using Git to push or commit these folders, all I'm doing is dumping these folders form my computers storage into github.
If the image doesn't work, heres the link to the rep.
Link to my repository
If anybody could help me with this, that would be a lifesaver.
Thank You.
So I tried importing the images folder itslef tat is located on my computer, and that didn't work out
I'll provide this answer, but I believe this is an excellent opportunity to learn some Gitfu. As this would be so much easier if you had git tracking your repo on your local machine.
First off, I believe you are using the "Add File" functionality on GitHub to upload you files. You can use this functionality to add folders as well. Just provide a slash after the root folder name and then add some dummy file name. This will create the dummy file in your new folder.
After having creating the folder you can upload the files you want into that folder using the same add file mechanism. One thing to keep in mind doing things this way you will have to manually delete the files from their previous location in GitHub. As well as delete the dummy file you created from the step above.
Now that I've answered the question, I highly recommend you learn git. It will save you so much time in the future.
Related
TLDR: GitHub Pages isn't working.
I have a little knowledge on GitHub and tried multiple fixes to no avail. One repository is only showing readme file contents.
Please explain in lamest terms.
New to web development, I finally was able to complete my first site, but I'm unable to actually deploy the files for some reason; please forgive me, I literally have no idea what any of the git terminologies are.
I purchased a pro subscription in order to keep the repository private and the site public.
Every file is present in what seems to be the main root directory, but nothing is being actually presented.
I've created two different repositories in an effort to fix this, as I've seen different methods are available.
The first repository includes a README file because I was originally instructed to do so, however, all the site link does is present that README file's contents;
I also attempted to add a permalink fix within the file, but all it did was add that text to the other text presented.
The second repository in question literally greets me with nothing but a 404 error.
The solution I tried for the second repository was to have the repository name share my username as well since that seems to be where the site's link originates, but no present changes have occurred.
Finally, the waiting game solution hasn't beared any fruit yet either aside from updating the README file's contents.
All help is very much appreciated.
Check first:
Your GitHub repository name, which depends on the type of GitHub Pages you are creating
If you're creating a user or organization site, your repository must be named <user>.github.io or <organization>.github.io.
your GitHub Pages Publishing source
If you use the default publishing source for your GitHub Pages site, your site will publish automatically. You can also choose to publish your site from a different branch or folder.
You can add more pages to your site by creating more new files.
Each file will be available on your site in the same directory structure as your publishing source.
For example, if the publishing source for your project site is the gh-pages branch, and you create a new file called /about/contact-us.md on the gh-pages branch, the file will be available at https://<user>.github.io/<repository>/about/contact-us.html.
Make sure you have GitHub Pages enabled for every repository and that it's set to the branch you want to publish by checking your Pages settings at github.com/<user>/<repo>/settings/pages. If enabled, there should be a link on that page that takes you to the site.
guys I'm supposed to upload assignment for this online course..
I followed the tutorial along exactly but something is not working properly.
https://zwc1625.github.io/coursera-web24/ is the where my repo is published and it's working fine.
but,
https://zwc1625.github.io/coursera-web24/mod_2/
where mod_2 is the assignment folder containing 1 html and 1 css file,
when I try to type in this address in the url 404 comes up
My local drive is up to date with the github repo
Help. New and very frustrated with github, I'm spending so much time with this and making no progress.
Github will serve a few specifically named files automatically, like 'index.html', 'readme.md' or 'readme'. Most servers will look in the specified folder (https://zwc1625.github.io/coursera-web24/mod_2/) for files named: 'index' or 'default' with a specific extension like 'html', 'asp', 'xhtml'.
As the file in your folder 'mod_2' is called 'module2HTML.html' it will not get served automatically. Consequently, if you want to open that file in your browser, you will need to name it specifically in the URL you enter in the browser addressbar: https://zwc1625.github.io/coursera-web24/mod_2/module2HTML.html
Furthermore, when you did name your file 'index.html' it may be possible that there is a time lag between your 'commit' and Github being able to serve your page. Some patience may be required....
Almost every time you save a web page from a web browser to your local computer a PAGENAME.html (or .htm) file is created and a folder named 'PAGENAME_files' that contains resources specific to that page.
If you copy/move/delete either the folder or the .html file Windows automatically does the same operation the other file as well.
This behaviour also happens if you create a file named 1.html and a folder called 1_files.
How does this link happen? And why does it work only with web files?
This is a shell feature, not a file system feature. The shell copy engine just looks for a folder with the same name (plus a localized suffix) when copying/moving .htm[l] files.
This feature is called Connected Files and is documented here.
It's a built-in linkage in Windows.
Open up Explorer (not IE, Windows), Tools, Options, View, then in Advanced Settings there'll be a "Managing pairs of Web pages and folders" section.
If people are stuck and ended up here to find how to unlink, here's an easy trick : on Windows 10, I couldn't find how to unlink a .html file from its associated media folder, so I deleted both of them, and in the bin I restored only the .html file and it was then restored and unlinked from its folder.
It is a good question.
Under Windows 7 I managed to solve forced links by simply renaming the file.
I think it is the easiest way.
Is it possible to mark a directory as generated, so it will be excluded in the search indexing, but still uploads files automatically to an FTP when changed?
More specific: In my project I have a src and a dist folder, so while working in src I don't need any file suggestions for dist files in the search. Marking the directory as 'excluded' seems to work, but then it does not upload external changes to the FTP anymore when compiling the code (using webpack/gulp/babel). So now I need to upload everything manually on each change.
The reason I need to exclude the dist folder is because not all files in there are minified, and I sometimes find myself working in dist without noticing, because they're so similar.
Is there a way to get a combination of both features?
Is there a way to get a combination of both features?
AFAIK -- Not really.
You can mark files as Plain Text in your dist folder .. but it will have to be done on per file basis (which is a real PIA if you need to do this for lots of files or often)...
For JavaScript files you may try adding them as JavaScript Library files.
Otherwise -- only mark such folder(s) as Excluded. Not sure about automatic upload ... but manually invoking Deployment | Synchronize with Deployed... works (which you may be using anyway).
https://youtrack.jetbrains.com/issue/IDEABKL-4253
https://youtrack.jetbrains.com/issue/WEB-12345
Watch these and related tickets (star/vote/comment) to get notified on any progress.
Check all the comments in those tickets as well -- maybe you will find better/working-good-enough workarounds there.
As directed by this link I have created a custom page for Alfresco Share to use as navigation. The jar file contains images and once again as directed its in META-INF/images (this part was sort of unclear what all should be there).
Upon further research I found out that META-INF is auto generated with a manifest but I am unsure a manifest would help me.
Alright the issue I'm having is that I can't get the images out of the jar file for Alfresco Share.
I've tried this #import url("/share/res/images/Concur.ng");
I've tried hard coding links to where they say it should end up
<src="http/serverIP/share/components/image/alfresco-share-logo.ng">
I tried doing it the way they wanted it done
<i src="/res/images/ADPSelfPortal.png"> (or so I think).
<i src="share/res/images/ADPSelfPortal.png"> tried both.
I need some guidance here if I really wanted to I could just drop the file of images somewhere randomly on the server and point to their location but if they aren't logged in they shouldn't have access to these resources.
Sorry this is a mess I'm frustrated with this problem.
As it turns out the instructions were correct, the smallest typo in the name and syntax when creating the jar is extremely important for adding pages to alfresco. Although finding this information did prove difficult at the time. I mentioned in the comment above that the alfresco folder and the meta-inf folder have to be packaged in the same directory. This functionality is important so that alfresco finds all the proper supporting files. Any new files to add to the static folder must be put into the META-INF folder.