I am using this tutorial to create a R markdown web page hosted on github: http://nickstrayer.me/RMarkdown_Sites_tutorial/
I created _site.yml, Index.Rmd, and build_site.R exactly as in the tutorial (copy/pasted). When I open index.html in a web browser from my local directory, index.html reflects the _site.yml style and appears as expected based on the tutorial (navigation bar at top, same as in the tutorial).
However, when I upload the index.html to github and view the page through the repository web page address as in the tutorial, the style is lost. There is no navigation bar, and the menu items just appear as text links.
I tried using multiple browsers, and the issue remained.
Result when index.html opened locally:
Result when same index.html opened via github repository web page:
repository: https://github.com/jjwill2/jasonwilliams
rendered site: https://jjwill2.github.io/jasonwilliams/
Your locally rendered site contains a directory site_libs. Files from this directory are used within the HTML pages, but you have not committed (or pushed) them to the git repository on Github. Once you commit these files and push them to github, the problem should go away.
A good debugging technique for these sort of issues are the developer tools build into modern browsers. The network view in FF gives the following upon loading your page:
Related
I am trying to upload the html file and aspx file in teams. once it is loaded then get the copy of files address
and i am going to load that copied path url in browser but it is not showing web content which i design like web page.
in browser (html/aspx) files are downloading. If i am trying to load apsx file in browser it was showing like error(Something went wrong File Not Found),
so want i like is that is there any feature to load in browser?
Thanks for your detailed explanation.
First of all, Teams does not host any html or aspx file itself. So you can not upload a file and use the URL to render web page in browser. The file URL is a link to that uploaded file location. That's the reason the file is getting downloaded in browser.
Secondly, it is other way round. You can run your website in any other server and use that URL to configure a tab in MS Teams.
Please go through these links
What can Teams apps do?
How do tabs work?
So I am editing a website for an NPO, and I am using brackets to do so. Before today, live preview was fine, and showed the whole website. Starting today, when I open live preview, the website looks blank. However, when I use dev tools, I can see all the boxes in the site highlighted when I hover over its code. I am not sure what is happening, as I am still using the original code of the website.
I had the same problem suddenly and another threat helped me: Brackets - Live Preview not working
I tried this: Open Brackets > click on File > Open Folder and then choose the right folder, as in your local host server for your files.
So if your folders for all the files and your index page are in one overall folder (as example called "main" - C:\main) choose that folder and click open.
I had the problem that it didn't work because it wasn't directed to my "main" folder but a sub-folder, so it did not have access to all the .css and .js etc files.
Trying to use Dev Tools Persist. Had a lot of trouble adding folder but eventually that worked. Folder is faded out and I can't "Map to File System Resource" (right click only shows this:
I tried using the "show editor in console" experiment (here and here) as a workaround but could never find it, despite enabling experiments.
I'm using dev off the live site. I don't control the site so don't have access to local files. I only need to update styles.
thanks!
Had the same problem, missing "Map to File System Resource". When my source maps included sourcesContent, the file mappings were automatically made and I could live edit my scss. Apparently chrome uses the content to find the right file.
node-sass --source-map-contents
:(
Images are showing up fine when local:
but when I upload it to my server it doesn't like the link?
live demo
I saw some SO's that had similar problems and was told to "img src="~/..." but that's not working.
Here's my code:
<img src="~/Content/Images_fixed/#(item.link).scale_20.jpg" width=" 190" height="130" />
here's my content folder:
It shows "nothing" in folder but if I click 'show all' i see the images. All the images are in the folder as well so that's not the error (as you can see they load fine locally)
EDIT
you will see the images working on my server but that's only because I am using this
<img src="http://www.jdmdev.net/sweetscomplete/images/#(item.link).scale_20.JPG" />
instead of <img src="~/Content/Images_fixed/#(item.link).scale_20.jpg" /> So my problem is still here it is not solved for some reason when you upload to your project it doesn't use same links, or possibly the images don't get uploaded(even though they appear on github just fine).
RESOLUTION
The cause: When you import images in visual studio, you need to 'include in project'. It will work locally, but once you put it on a live server it will no longer see the images. You must include in project, re-open visual studio and update your SVN that your server is retrieving the build from.
Try to include these images in your project, then try to publish your site. Maybe they are not uploading onto your server.
UPDATE:
If you 'Show All Files' in your project in Visual Studio, and then 'Include in Project' all your images, then they will be added to .csproj file. Then you can commit your changes to github (including the .csproj file) and allow Azure to build your project and upload the files to your server.
As Apple requested to use https instead of http for distributing the IPAs over the air, I tried to use dropbox. I followed this solution Enterprise app deployment doesn't work on iOS 7.1 but I'm getting this error:
"Cannot connect to dl.dropboxusercontent.com"
when trying to install the plist through this link: <a href="itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/56ny312cwdacho7/xxxxx.plist> Install </a>
Thanks in advance.
NOTE : Shared links don’t render HTML content in a web browser
Refer https://www.dropbox.com/help/desktop-web/force-download
Check question
How to force render a file in a browser
EDIT : Reason is you will need to change link url and reupload it :
replace www.dropbox.com with dl.dropboxusercontent.com inall links
Reupload by making changes in link which are in html and plist file again.
Thats it. Enjoy
TOTAL SOLUTION
Needed file for distribution using example link are given below :
Build your app from xcode using Build and Archive option. Upload your ipa file to Dropbox. And get public link for the ipa.
Note : replace www.dropbox.com with dl.dropboxusercontent.com in the link.
Download the manifest.plist - edit the line #14 with the public link of your ipa . Modify other keys as well (bundle-identifier, bundle-version, title) .
Upload the modified manifest.plist to Dropbox and get its public link.
Download the index.html - edit url param at line #8 with public link of your manifest.plist
Hosting using Github. How that can be achieved is explained in following steps
Create a new project.
Add index.html as we will be hosting a site in Github Pages. Note
html file with other name will not be valid as it should always be
with index name.
Now go to project settings. Traverse through Github Pages
Under source tab select master-branch and click on save
Traverse back Github Pages you will see site will be published
Now you have Download link like https://paresh-navadiya.github.io/install.html/
Refer How to distribute using DropBox by #
oldman's answer and Distribute your iPhone/iPad adhoc builds Over The Air using DropBox
It working 100% percent.
Have a nice day to all :)
I had exactly the same issue. Firstly I tried putting all of my files in the public folder of my dropbox account. It still didn't work but I noticed with modifying my plist file I had overwritten the closing "</string>" XML tag for the ipa file itself. Once I added that back in it all worked. So whether it would have worked without moving to the public folder I do not know. I haven't tried because I have the result I desire for my users.
I faced the similar issue with dropbox few days back, saying cannot connect to dl.dropboxusercontent.com, what I did is deleting the sharable link which I created earlier and created a new sharable link for both plist and ipa files. And I updated these links in plist and html page. I don't know what was wrong with my old sharable links. Hope this answer might be helpful for someone.
Happy coding.
As already pointed out in a similar reply here, if the PLIST file is malformed, this error will appear.
In my case, I forgot the fact that the ampersand ("&") charcater is forbidden in XML, and the name of my app contained "&" in it, so I had to replace the & with & in the containing the name and everything worked.