Skip to content

Commit e870be6

Browse files
authored
Merge pull request #105 from JetJet13/develop
v2.0.0 | Merge to Master
2 parents 61befc5 + d333460 commit e870be6

14 files changed

+52
-33
lines changed

CONTRIBUTING.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ The Mathbook project is hosted on GitHub and there is an issues section where yo
3232
bug.
3333

3434
Please make sure to follow the bug reporting guidelines outlined
35-
[here](https://github.com/JetJet13/mathbook/wiki/Bug-Reporting-Guideline).
35+
[here](https://github.com/mathbook-io/mathbook/wiki/Bug-Reporting-Guideline).
3636

37-
[Click here to go the issues page for Mathbook](https://github.com/JetJet13/mathbook/issues)
37+
[Click here to go the issues page for Mathbook](https://github.com/mathbook-io/mathbook/issues)
3838

3939
## I want to fix/squash some bugs
4040

@@ -44,7 +44,7 @@ smaller bugs.
4444
If and when you get comfortable fixing bugs and making changes to the source code, you are more than welcome to making
4545
the jump towards squashing bigger bugs.
4646

47-
[Click here to view the current list of reported bugs](https://github.com/JetJet13/mathbook/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3Abug+)
47+
[Click here to view the current list of reported bugs](https://github.com/mathbook-io/mathbook/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3Abug+)
4848

4949
## I want to write some documentation
5050

@@ -54,7 +54,7 @@ understanding how Mathbook works under the hood.
5454
Writing documentation requires knowledge of the inner workings of Mathbook and the reasoning behind the decisions made
5555
in the architecture and source code.
5656

57-
The documentation for Mathbook lives [here](https://github.com/JetJet13/mathbook/wiki)
57+
The documentation for Mathbook lives [here](https://github.com/mathbook-io/mathbook/wiki)
5858

5959
We recommend reading through some parts of the docs to get an idea of what's needed to contribute to the docs, ie)
6060
formatting, providing examples and maybe even referencing some part of the source code
@@ -72,7 +72,7 @@ For Mathbook, the testing framework we use is [Chai](http://chaijs.com/) and our
7272

7373
Check out the tests folder in the [source code](./tests) to get an idea of how we structure our test suites.
7474

75-
You can also check out the [documentation](https://github.com/JetJet13/mathbook/wiki/Testing-Documentation) to learn
75+
You can also check out the [documentation](https://github.com/mathbook-io/mathbook/wiki/Testing-Documentation) to learn
7676
about the reasoning behind the different types of tests that we write.
7777

7878
## I want to provide some feedback
@@ -83,7 +83,7 @@ improved, let us know.
8383
You can create an issue on GitHub and tag the issue with the proper tag that reflects your feedback (we have a bunch of
8484
tags, pick one that best represents your feedback).
8585

86-
[Click here to go the issues page and provide some feedback](https://github.com/JetJet13/mathbook/issues)
86+
[Click here to go the issues page and provide some feedback](https://github.com/mathbook-io/mathbook/issues)
8787

8888
## Contributor Behavior
8989

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[![Build Status](https://travis-ci.org/JetJet13/mathbook.svg?branch=develop)](https://travis-ci.org/JetJet13/mathbook)
2-
[![Greenkeeper badge](https://badges.greenkeeper.io/JetJet13/mathbook.svg)](https://greenkeeper.io/)
1+
[![Build Status](https://travis-ci.org/mathbook-io/mathbook.svg?branch=develop)](https://travis-ci.org/mathbook-io/mathbook)
2+
[![Greenkeeper badge](https://badges.greenkeeper.io/mathbook-io/mathbook.svg)](https://greenkeeper.io/)
33
[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/mathbook-chat/Lobby)
44

55
![mathbook-logo](./src/front-end/public/images/mathbook_indigo_white_v5.png)
@@ -16,14 +16,14 @@ in JavaScript and built using NodeJS, ExpressJS, Riot and Pug.
1616
## Up and Running with Docker
1717

1818
Please refer to the wiki to get
19-
[up and running with Docker](https://github.com/JetJet13/mathbook/wiki/Up-and-Running-with-Docker).
19+
[up and running with Docker](https://github.com/mathbook-io/mathbook/wiki/Up-and-Running-with-Docker).
2020

2121
## Local Installation & Setup
2222

2323
#### Download/Clone Mathbook Repo & Install Dependencies
2424

2525
```bash
26-
git clone https://github.com/JetJet13/mathbook.git
26+
git clone https://github.com/mathbook-io/mathbook.git
2727

2828
cd ./mathbook
2929

@@ -35,11 +35,11 @@ npm i
3535

3636
**[required]** - You will need a custom configuration file tailored to your local setup so go ahead and create a file in
3737
the `config` folder called `local.json`. You can grab a sample local config file
38-
[from the wiki here](<https://github.com/JetJet13/mathbook/wiki/Sample-Local-Configuration-File-(local.json)>).
38+
[from the wiki here](<https://github.com/mathbook-io/mathbook/wiki/Sample-Local-Configuration-File-(local.json)>).
3939

4040
**[optional]** - This step if only needed if you want to get the authentication functionality of Mathbook to work. There
41-
is a [wiki page](<(https://github.com/JetJet13/mathbook/wiki/Setup-Your-GitHub-OAuth-Application)>) to get that up and
42-
running since its not required for a local setup.
41+
is a [wiki page](<(https://github.com/mathbook-io/mathbook/wiki/Setup-Your-GitHub-OAuth-Application)>) to get that up
42+
and running since its not required for a local setup.
4343

4444
#### Downloading & Installing Redis
4545

config/constants.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"OWNER": "JetJet13",
2+
"OWNER": "mathbook-io",
33
"REPO": "mathbook",
44
"BRANCH_PREFIX": "tutorial",
55
"TUTORIALS_PATH": "src/tutorials",

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mathbook",
3-
"version": "1.2.0",
3+
"version": "2.0.0",
44
"private": true,
55
"scripts": {
66
"start": "node ./bin/www",
1.12 KB
Binary file not shown.
7.91 KB
Loading

src/front-end/public/javascripts/helperFunctions.js

+19
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,24 @@ function toggleDropdownMenu(id) {
113113
navbarDropdown.removeClass("is-active")
114114
return
115115
}
116+
clearDropDowns(id)
116117
navbarDropdown.addClass("is-active")
117118
}
119+
120+
function clearDropDowns(id) {
121+
$(".navbar-item.has-dropdown").each(function(index) {
122+
const element = $(this)
123+
// we only want a single dropdown open at one time
124+
if (id && element.is("#" + id) === false && element.hasClass("is-active")) {
125+
element.removeClass("is-active")
126+
}
127+
})
128+
}
129+
130+
// dismiss dropdowns when user clicks away from them
131+
$(document).click(function(e) {
132+
const element = $(e.target)
133+
if (element.hasClass("navbar-link") === false) {
134+
clearDropDowns()
135+
}
136+
})

src/front-end/views/500.pug

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ block content
77
p Uh-oh, there was an Internal Server Error. That means that your request was mishandled or something broke server side.
88
br
99
| Sorry about that. Feel free to raise an issue about this
10-
a(href="https://github.com/JetJet13/mathbook/issues" target="_blank") here
10+
a(href="https://github.com/mathbook-io/mathbook/issues" target="_blank") here
1111
p
1212
a(href="/") Click Here to go back to the homepage.

src/front-end/views/contribute-components/create-tutorial.pug

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ block info
5555
strong Note
5656
| : If you don't know much about TeX or HTML and CSS, don't worry about it too much, you can easily learn as you start building out the tutorial.
5757
p If you want to write a tutorial for a subject that is not listed in Mathbook, feel free to create an issue about it
58-
a(href="https://github.com/JetJet13/mathbook/issues" target="_blank") here
58+
a(href="https://github.com/mathbook-io/mathbook/issues" target="_blank") here
5959
| and a contributor will try their best to get it added in a timely manner.
6060
p When your tutorial gets approved and added to Mathbook, you will be added as a contributor (if you aren't one already).
6161
p The next section will talk about the different components that make up a tutorial.
@@ -144,7 +144,7 @@ block info
144144
p Once your tutorial gets approved and merged, it gets added to the collection of tutorials on Mathbook and
145145
| your github account and name will be added to the contributors list.
146146
p You can take a look at the tutorials currently submitted for review
147-
a(href='https://github.com/JetJet13/mathbook/pulls' target="_blank") here
147+
a(href='https://github.com/mathbook-io/mathbook/pulls' target="_blank") here
148148
h3#start Start building your tutorial
149149
p For your convenience, here is a list of resources that we think will come in handy when you are creating your tutorial.
150150
ul

src/front-end/views/contribute-components/overview.pug

+7-7
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ block info
4545
br
4646
br
4747
| Please make sure to follow the bug reporting guidelines outlined
48-
a.is-link(href="https://github.com/JetJet13/mathbook/wiki/Bug-Reporting-Guideline" target="_blank") here
48+
a.is-link(href="https://github.com/mathbook-io/mathbook/wiki/Bug-Reporting-Guideline" target="_blank") here
4949
|.
5050
br
5151
br
52-
a(href="https://github.com/JetJet13/mathbook/issues" target="_blank") Click here to go the issues page for Mathbook
52+
a(href="https://github.com/mathbook-io/mathbook/issues" target="_blank") Click here to go the issues page for Mathbook
5353
span(class="help has-text-grey") Note: You will need to create a GitHub account if you don't already have one to create an issue.
5454

5555
h3#fix-bugs I want to fix/squash some bugs
@@ -59,7 +59,7 @@ block info
5959
| towards squashing bigger bugs.
6060
br
6161
br
62-
a(href="https://github.com/JetJet13/mathbook/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3Abug+" target="_blank")
62+
a(href="https://github.com/mathbook-io/mathbook/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3Abug+" target="_blank")
6363
| Click here to view the current list of reported bugs
6464

6565

@@ -69,7 +69,7 @@ block info
6969
| Writing documentation requires knowledge of the inner workings of Mathbook and the reasoning behind the decisions made in the architecture and source code.
7070
p.preWrap
7171
| The documentation for Mathbook lives
72-
a(href="https://github.com/JetJet13/mathbook/wiki" target="_blank") here
72+
a(href="https://github.com/mathbook-io/mathbook/wiki" target="_blank") here
7373
p.preWrap
7474
| We recommend reading through some parts of the docs to get an idea of what's needed to contribute to the docs, ie) formatting, providing examples and
7575
| maybe even referencing some part of the source code
@@ -90,18 +90,18 @@ block info
9090
a(href="http://sinonjs.org/" target="_blank") Sinon
9191
| for stubbing/mocking and setting up spies.
9292
| Check out the tests folder in the
93-
a(href="https://github.com/JetJet13/mathbook/tree/develop/tests" target="_blank") source code
93+
a(href="https://github.com/mathbook-io/mathbook/tree/develop/tests" target="_blank") source code
9494
| to get an idea of how we structure our test suites.
9595
p.preWrap You can also check out the
96-
a(href="https://github.com/JetJet13/mathbook/wiki/Testing-Documentation" target="_blank") documentation
96+
a(href="https://github.com/mathbook-io/mathbook/wiki/Testing-Documentation" target="_blank") documentation
9797
| to learn about the reasoning behind the different types of tests that we write.
9898

9999
h3#feedback I want to provide some feedback
100100
p.preWrap
101101
| Your feedback is always welcome. Do you have an idea for a new feature or think that some functionality could be improved, let us know.
102102
| You can create an issue on GitHub and tag the issue with the proper tag that reflects your feedback (we have a bunch of tags, pick one that best represents your feedback).
103103
p
104-
a(href="https://github.com/JetJet13/mathbook/issues" target="_blank") Click here to go the issues page and provide some feedback
104+
a(href="https://github.com/mathbook-io/mathbook/issues" target="_blank") Click here to go the issues page and provide some feedback
105105
span(class="help has-text-grey") Note: You will need to create a GitHub account if you don't already have one to create an issue.
106106

107107
h3#behavior Contributor Behavior

src/front-end/views/contribute-components/review-tutorial.pug

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ block info
1616
| and the tutorial remains in a state of approval, it will be merged and added to Mathbook. That tutorial will then be added to the next release of Mathbook,
1717
| which depending on the number of tutorials and features and bug fixes, can vary (from the same day to a week).
1818
p All pull requests for tutorials that have been submitted for review live
19-
a(href="https://github.com/JetJet13/mathbook/pulls") here
19+
a(href="https://github.com/mathbook-io/mathbook/pulls") here
2020
|.
2121
h3 What do I need to do ?
2222
p You'll notice that every tutorial has a description box with a link to preview the tutorial. This link will navigate you to Mathbook

src/front-end/views/layout.pug

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ html
7272
.container
7373
.content.has-text-centered
7474
p.my-footer-text
75-
a.my-footer-text(target='_blank', href='https://github.com/jetjet13/mathbook')
75+
a.my-footer-text(target='_blank', href='https://github.com/mathbook-io/mathbook')
7676
strong Mathbook
77-
| was created by Johny Georges
78-
a.icon.my-footer-text(target='_blank', href='https://github.com/jetjet13')
77+
| would not be possible without its talented Contributors.
78+
a.icon.my-footer-text(target='_blank', href='https://github.com/mathbook-io/mathbook/contributors.md')
7979
i.fa.fa-github
8080
p.my-footer-text
8181
| Licensed under
82-
a.my-footer-text(target='_blank', href='https://github.com/JetJet13/mathbook/blob/develop/LICENSE')
82+
a.my-footer-text(target='_blank', href='https://github.com/mathbook-io/mathbook/blob/develop/LICENSE')
8383
strong Mozilla Public License 2.0
8484
a(target="_blank" href="https://opensource.org/")
8585
span.icon.is-small

src/server/app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const path = require("path")
66
const bunyanRequest = require("bunyan-request")
77
const authenticationMiddleware = require("./middleware/authentication")
88
const helmet = require("helmet")
9-
// const favicon = require('serve-favicon')
9+
const favicon = require("serve-favicon")
1010
const logger = require("./logger")
1111
const requestLogger = bunyanRequest({
1212
logger: logger,
@@ -24,7 +24,7 @@ app.set("views", path.join(__dirname, "..", "front-end", "views"))
2424
app.set("view engine", "pug")
2525

2626
// uncomment after placing your favicon in /public
27-
// app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
27+
app.use(favicon(path.join(__dirname, "..", "front-end/public/images/favicon.ico")))
2828
app.use(requestLogger)
2929
app.use(bodyParser.json())
3030
app.use(bodyParser.urlencoded({ extended: false }))

0 commit comments

Comments
 (0)