Integrate Sphinx documentation in Django - html

I've created the documentation for a webpage using Sphinx. The index.html generated via Sphinx is saved in a html folder. I'm not sure how to integrate the index.html and display on webpage content from Django.
Currently, a link has been provided and it redirects to the documentation page.
I would like to know how to display the page directly.
For example,

Related

Uploading html file in github

I have created a html file using R markdown, and when I open it in browser, it looks exactly how I want. But if I upload the same html file in github and open there, it gives me totally different outlook.
https://github.com/syedaash/ML-Project/blob/main/ML_project.html is the link of my html doc in github, which is not I want. But if I open the html file from my local computer in a browser it's good. Why is that and what to do?
GitHub does not automatically load and render an HTML file because GitHub is about code, therefore going straight to any file will display the internals of that file, not how it would be rendered on a browser.
The HTML Preview project has a way to render HTML files hosted on GitHub, you can just append your HTML path like so and put it on your README for example:
https://htmlpreview.github.io/?https://github.com/syedaash/ML-Project/blob/main/ML_project.html
However, I would recommend that you look into creating a GitHub Page for your project, you only need to make a few changes and turn it on and you got it.
Edit: So I checked on your status #Alex and it looks like you created the GitHub Page for your GitHub profile, which is not rendering your profile properly. Maybe this tutorial from codeacademy will be easier to understand that you can get GitHub Pages rendered for EVERY repo if you wish. You can see I do that with my own simple project with its live site.
If you want to see the output of the file (what it looks like when opened in a browser, you have to enable Github pages for your repository, more here. The link you sent is just the HTML text file that you have written, not what it actually would look like in a browser. Github pages hosts the HTML text file (link you sent) so that you can actually see it in a browser window.
GitHub is to share code not to deploy website. So now you should use GitHub Pages this is my sample website Hariienesh1901 hosted by GitHub Pages. See tutorial from GitHub https://guides.github.com/features/pages/

Github index.html and MVC

I seem to be running into a problem. I am wanting to upload my website to github but see that one needs to have the main page as index.html. This is an issue as i have created an empty ASP.NET MVC application with views and controllers that have the .cshtml tag.
How can I create an index.html as the main page and then call my other main page which will be a view, this way all I am doing is getting github to look at index.html and then my main page will be displayed? by index.html calling it.
I have tried to use the following as I saw them mentioned in a few other posts but can not seem to get it to work, I know that it did change my URL but still displayed index.html
routes.IgnoreRoute("");
Here is a picture of my project folder layout
Thanks for the the future reply's! Sorry if this post is a bit messy it is my first time posting here. TO add i am trying to host on gitHub through username.github.io
As far as I know Github does not support ASP.NET, but you can use a free Azure account. Take a look at:
http://www.asp.net/hosting
find answer by S.Spieker
kindly have a look on Deploying from ASP.Net MVC to GitHub Pages using AppVeyor if you want to do via AppVeyor

Download HTML as separate pages

I'm using Read The Docs for a project. Everything seems to be working well online. However, when I download the HTML for offline use, I find that the documentation is all crammed into a single HTML file (index.html). Is it possible to download the documentation so that it has the same look and feel as the online docs with separate, linked pages?
I tried changing the documentation type from the RTD Admin > Settings page between the three options (Sphinx Html, Sphinx HtmlDir, and Sphinx Single Page HTML), but none of these seem to visibly change either the online content or the downloaded HTML structure.
Python's documentation from generated from Sphinx does have separate HTML files. Yet Read The Docs's own documentation also downloads as a single HTML file.
Am I missing something, or is this a limitation of Read The Docs?
My Read The Docs site is here: http://kiva.readthedocs.org/en/docs/
My GitHub Repository is here: https://github.com/nealkruis/kiva/tree/docs/docs
HTTrack does a good job of mirroring Read the Docs:
httrack 'http://doc.scrapy.org/en/1.0/' -O scrapy-1.0
Answer from ericholscher on #readthedocs IRC:
correct, we build our downloadable HTML as a single page by default
there's currently no setting to change that

Search All Files in a Website

I am working on a project in which I need to find all files in a website. For example my webpage contains index.html and a PDF file.
How others can find out that there is a PDF file in my website domain?
You need a scraper of some sort.
ex) http://scrapy.org/
You can traverse a webpage by their links.
If you think of a page as a node and link as children
you can easily cover all files of that website.
If that specific website shows every link in its pages,
this method is possible, if not then you have to use
other means such as search engine to look through it's indexed pages.

convert my website to a sharepoint site

I am new to sharepoint online 2013.
I have a simple mapping application(webmap with html5/css/js (javascript/jquery) that I would like to move into a sharepoint subsite/master site available to my sharepoint users (that they must be logged in to see)
How do I import the html5, css, and js to sharepoint as set up the page?
It keeps trying to get me to use templates and I am not sure where to put these files for my site. I am using sharepoint online 2013 and sharepoint designer 2013.
Please help Thanks.
The easiest way to get your site up and hosted inside SharePoint would be to rename all your .html files to .aspx and upload the entire thing into a document library including folders with your js and css files.
Your users would need to be logged in to see the pages and you would only need to modify your existing solution to change any .html links in the content to .aspx (I would just write a quick batch file to do this).
You can keep the exact format and structure you currently have so you don't need your supporting css and js to be in the Style Library, they can just be in the same document library in their own folders so your existing relative links will keep working.
You can create normal web part pages/blank pages in "Site Pages" and copy your html design structure.All the scripts,css will need to be uploaded to "style library" of SharePoint site.Below is link to create web part pages using SharePoint designer.
http://office.microsoft.com/en-us/sharepoint-designer-help/create-sharepoint-site-pages-HA101782505.aspx