Include Readme.md in HTML file - html

I have a static HTML page which I am hosting on a personal server. I have a README.md file which I am storing in a public GH repo. I'd like to automatically include the contents of the ReadMe on my local html page.
Basically, I want to be able to update the Readme file in the project repo and have updated instructions automatically displayed on the project website.
Any thoughts?
Thanks

I think you might need more than just HTML for that. Perhaps look into using ajax to request your external resource and insert it into your page...

Related

WordPress generated files edited with HTML

After basic knowledge of HTML/CSS/JS and Jquery, I got myself into WordPress. In order to save time and not build things from zero, I would use pre-made templates, and modify them according to the built of the desired future webpage. There might be a huge misconception in my head, but so far I havent found reply for this solution.
I have a locally running WordPress webpage with the help of WAMP. My webpage would consist 3 separate HTML files, lets say "index.html, contact.html, about.html". My issue is that after generating those pages in WordPress, I dont find any way to modify the HTML file of those sites. Nor locally in my computer, nor in the surface of WordPress. I found the "editor" function in WP, but apparently it lets me to edit only the CSS file.
My main goal is to generate the file with a template, than import it to BRACKETS / ATOM / etc and custom-shape the HTML and CSS on it. What am I missing ?
Thanks,
Wordpress only has templates it uses according to the type of content (page, blog post or any other custom post type you define in the theme) requested. All your actual data is stored in the mysql database. This data is retrieved and inserted into the template and then the generated file is sent to the client. So, you wont find any .html files in the wordpress core. My suggestion is to view the source in the browser, copy, paste and edit in your favourite editor.
I think you are using HTML files as a template which are not dynamically converted into wordpress theme. that's why you can't edit these files. You need to follow these steps.
1. your index file must be in index.php not index.html
2. style.css file with valid codes and most important thing is you need to know wordpress theme development. https://developer.wordpress.org/themes/basics/template-files/ This will help you

How to host website on github with HTML and CSS preprocessor format?

I have created a new repository and and included all files necessary to host a website on github, see (https://github.com/tonystaark/tonystaark.github.io/tree/master)
However, I received a 404 error when I visited my own website at tonystaark.github.io. The error says that 'For root URLs (like http://example.com/) you must provide an index.html file.'
How do I convert my .pug format into a html (or .postcss into a .css) file then?
You can easily generate html from pug file using command line option,
pug -O '{"doctype": "html"}' index.pug
It's automatically generate index.html file for you.You can check other options from here
Pug files need to be compiled onto the server before being served as an HTML file. There aren't many great ways to compile Pug in the client. If you have a strong need to use Pug as a templating engine, GitHub Pages will not be able to do that. You will need to host your site somewhere that supports Node.js engines (Heroku, DigitalOcean, Amazon S3, etc.)
I didn't see any Pug files in your GitHub repo, though, so I don't know if you figured out another solution or tried to do something else.

How to upload sigmajs gephi export files to a server? [javascript files w/ css and index.html that I need to point to]

I'm trying to upload my sigmajs export from gephi to a website, my GitHub pages, but I'm having trouble uploading them.
Can somebody explain what to do? I uploaded the folder and tried to point it to index.html, but my graph does not show up.
You need to create a repo called accountname.github.io and push all the files there. Substitute accountname above with your GitHub username

jekyll build hook to create gz versions of each .html file

Does jekyll build provide a hook which I can use to gzip each .html file in the _site directory? I'd like to have a corresponding example.html.gz file to an example.html file.
I would write a wrapper script in case there is no hook. I just want to be sure to make it in the cleanest way possible.
There is no hook in jekyll build.
The only way to generate additional content is to write a generator plugin.
If your goal is to serve the gzipped version of you pages, you must know that github pages already serves gzipped html, css and js.

How can i embed a file, committed on svn, into my html page?

Is there anyway that I can display an xls file committed on SVN onto my webpage(HTML) in an iframe or something?
I'm not 100% sure what you're asking/expecting but here is what is possible:
You can commit an XLS file to an SVN repo
Assuming you can make that SVN repo public (or access it from the web server) you should be able to display it on a webpage, but only as a link to the file, which others can download.
If you want to actually display the contents of the XLS you would have to read the file in code, and display it in a table you create in code
You could do something like convert the file to a Google Doc, and display that in an iFrame (From memory their API is pretty good so you could likely interface with their API to write some code to upload the file etc)
You could use other frameworks or similar to load the data into table like structures in HTML e.g http://www.datatables.net/