forked from Rishav159/aima-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Local testing no longer requires gulp; fix header navigation
Goal: make iteration faster by removing the gulp bundle & copy & copyback steps. There are four ways to load the pages: 1. On gh-pages (http://aimacode.github.io/aima-javascript/) 2. Locally (http://localhost/), from a webserver running in ./build/ 3. Locally (http://localhost/), from a webserver running in ./ 4. Locally (file:/// urls), without a webserver Prior to this change, (1) and (2) worked. This change makes (3) and (4) also work. The header.html file worked only for (2) and not for (1) which is the most important of these. With this change, all four work. gulp bundle was being used only to build "main.js", which loaded Bootstrap JS, Bootstrap CSS, and a site-wide CSS. It is not doing anything to the local html or js files. - Changed Bootstrap to load the same way we load JQuery and Two.JS: through a CDN. The CDN copy will be cached across sites. - Replaced the gulp-built main.js with a version that loads Bootstrap from the CDN. - Loaded the site-wide CSS directly from each page. - Moved common script to load header.html into main.js. - Moved the footer html to main.js. This will make it easier for us to modify the footer across pages. - Switched jquery from 1.10.2 to 1.12.4 to match Bootstrap 3's recommended version - Fixed typos (Stuart Russell's name, chapter titles) - Removed extra styles.css file (there were two and we were using only one) - Removed src/index.js as it was used to minify our own copy of Bootstrap and is no longer needed to load Bootstrap from CDN - Removed header.html from the home page, since the home page already has the chapters listed below the title. Also, there isn't a simple way to make header.html work in all the different use cases and also work on the home page. - Removed the large site header from the chapter pages, to better distinguish the home page from the chapter pages. - Updated gulpfile to match all these changes. There is no longer a "gulp bundle" or "gulp copyback"; gulp is only needed for deploying to gh-pages.
- Loading branch information
1 parent
5e4354e
commit 6542592
Showing
34 changed files
with
143 additions
and
502 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.