-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25ca12c
commit 5445429
Showing
4 changed files
with
67 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Emails | ||
|
||
By default, the Gallery saves e-mail messages to the file system under `src\NuGetGallery\App_Data`. | ||
|
||
You can use an SMTP server instead by editing `src\NuGetGallery\Web.config` and adding a `Gallery.SmtpUri` | ||
setting. Its value should be an SMTP connection string, such as `smtp://user:password@smtpservername:25`. | ||
|
||
You can require new accounts confirm their e-mail adddress by changing the value of `Gallery.ConfirmEmailAddresses` | ||
to `true` in the `src\NuGetGallery\Web.config` file. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Updating NuGet Gallery's frontend | ||
|
||
## Styling | ||
|
||
We use [Bootstrap 3](https://getbootstrap.com/docs/3.3/) as our base CSS framework. | ||
This provides a grid layout, CSS normalization, and some common styles. | ||
|
||
Changes to our styles should be made to [LESS](https://lesscss.org/) files and not to a CSS file directly. | ||
LESS is a syntax that itself is not usable by a browser but is compiled to CSS. It provides niceties that CSS | ||
does not offer such as rule nesting, mixins, variables, and arithmetic (calculated values). | ||
|
||
Each page may have its own set of specific styles. These page-specific styles are in a `page-*.less` file | ||
in the `src\Bootstrap\less\theme\` directory. | ||
|
||
### Prerequisites | ||
|
||
To compile LESS files: | ||
|
||
1. Install node: https://nodejs.org/en/download/ | ||
1. Install Grunt: `npm install -g grunt` | ||
1. Navigate to `.\src\Bootstrap` | ||
1. Install NPM dependencies: `npm install` | ||
|
||
### Updating styling | ||
|
||
1. Update one or more `.less` files in the `src\Bootstrap\less` directory | ||
1. Navigate to `.\src\Bootstrap` | ||
1. Run `grunt` | ||
|
||
### Adding a new page | ||
|
||
1. Create a new `page-X.less` file in the `src\Bootstrap\less\theme\` directory | ||
1. Add the new page in `src\Bootstrap\less\theme\all.less` | ||
|
||
## JavaScript | ||
|
||
We use [jQuery](https://jquery.com/) and [Knockout.js](https://knockoutjs.com/). | ||
|
||
Common JavaScript should be added to `src\NuGetGallery\Scripts\gallery\common.js`. | ||
|
||
Each page may have its own custom logic. These page-specific scripts are in a `page-*.js` file | ||
in the `src\NuGetGallery\Scripts\gallery\` directory. |
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