Is it right to use GIT for version control of HTML pages - html

I am working on an app that creates automatic blog HTML pages using JSON and also has to provide versioning for that blog.
Creating HTML using JSON files
Creating a GIT tag whenever User creates a version.
If the user wanted to see the previous version of that blog I am simply checking out that file to given tag and fetch the file and again creating HTML using that JSON file.
Questions
Is it right to use GIT for the above purpose?
If yes, Are there any precautions that I have to take?
If no, Is there any alternatives for saving the previous version of a file except saving each file for each version?
Note: I am using Node.js for creating GIT tags and checkout to tags

You should use git for every project, ask if it's right only if you have a ton of binary files.

I've seen people use git for content writing and articles, remember it is an efficient version control systems and as long as you wish to have past versions of your project( you always should), you should use git.
even if you are not pushing to a remote repository, it's better to have some VCS implemented in all your projects.

Related

How to organize Web Development using Git

Web Developers!
How do you go about organizing your Github projects for your front-end and back-end?
For example, I have a python script that generates a JSON file that the front end JavaScript consumes to generate data on the pages.
Would you create one repository with two directories labeled front-end and back-end?
Or would you make two different repositories?
I'm interested in what developers do in the wild. Because up until now I found myself having a complete clone of my website in a directory on my desktop PC, and just pushing individual files via SFTP from there.
I'm getting to the point where I have enough *.old files that I want to implement version control so I can view much older states of code with Metadata like date and user that edited it.
The answer is yes. Make two different github projects.
Just Like Michael W has stated, "[...] this is highly opinionated". What I find to be the most common approach is to implement a single github project when still in development and especially when you're developing on your own. This is useful because you don't have to switch up between repositories and/or branches, which saves time.
Another common approach is to split them up. However this approach is only possible when both projects can run independent from one and other. In your case it's important to split the project logically. If the python project only generates JSON files and places them on a server location, then I would place that into it's own github project, because the main purpose is to generate files, so the python application can run on a server seperate from the frontend. If the webapp only consumes the JSON files through maybe a rest call or through a connection to a FTP, then also that can be placed within it's own project.

How to store webpage?

I want to save the following webpage (https://cs231n.github.io/) such that I can easily view it offline. Is there a way to do this without copying each page by hand?
I already downloaded some software but they are not working properly.
I see that there is a GitHub repository, can this be used to offline view the content of the page?
The simplest way is to use third party program as HTTrack. Your linked web-site is relatively simple and this program should handle it.
The hardest yet most correct way is to, yes, clone web-site from git repository and serve it on your local computer. It can be not easy depending on how site is built, does it use database and so on.

uding tfvc with readthedocs

I'm considering setting up my own readthedocs instance. I see that they have support for Git, Mercurial, Subversion, and CVS .I do however have a couple of legacy projects which are considerable effort to move over to git sitting in TFS using TFVS.
Would it still be possible to pull in these projects using the webhook method they're talking about?
What would be the code based approach to get this to work?
Eventually I'd like to get all these opened up on Github, but thats something I still need to sell.
No, it's not support to uding tfvc with readthedocs.
It's viable to use web hooks in VSTS directly. Document from MSDN:Web Hooks
However, if you want to use web hooks with TFS. You may need to use TFS plugin such as Cloudpipes. More details you can refer this link: Integrate Team Foundation Server with Web hooks

How to convert many HTML files to MediaWiki Pages on Windows?

I'm on Windows and I have an index.html in a folder and a huge set of html pages in subfolders.
How can I convert these html files to MediaWiki pages?
Check the Converting content from HTML text file section from the manual at mediawiki.org. Personally I would start with these two, and if that doesn't work I'd build something based on pywikibot. Any of these solutions can be made to work on Windows, though it is advisable to try it on Linux or OS X first, and if not install Cygwin.
You're unlikely to find any kind of streamlined GUI tool for such a specialized action. If you need more help with using the code available there you should hire a programmer or learn how to do it yourself.

Downloading .net project from link

I found this site that has a link to a .Net project.
The link is to a folder structure.
How do I down load this project without SVN??
Is it specific SVN??
http://svn2.assembla.com/svn/nbdn_web_store/
Source Code
I would say that either you install svn (which is not a huge install), or you have a lot of clicking to do when you download each file separately using your web browser. Can't see any other alternatives, really.
install subversion and check out the file with e.g. the command
svn co http://svn2.assembla.com/svn/nbdn_web_store/trunk/ ndbn_web_store
First of all, I agree that installing svn is a good option.
If you don't want to do that (and don't like clicking tons of links to download each file) you can use an offline browser such as this one recommended by CNET