Skip to content

Commit

Permalink
Compensate for netlify URL normalization and fix scrolling again
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jul 1, 2019
1 parent 928d7d6 commit 21b7ce4
Show file tree
Hide file tree
Showing 36 changed files with 81 additions and 81 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/BUG.md
Expand Up @@ -26,7 +26,7 @@ about: Something went awry and you'd like to tell us about it.

<!--
Issues without minimal reproductions will be closed! Please provide one by:
1. Using the REPL at https://rollupjs.org/repl, or
1. Using the REPL at https://rollupjs.org/repl/, or
2. Work to isolate the problem and provide the exact steps in this issue, or
3. Provide a minimal repository link (Read https://git.io/fNzHA for instructions).
These may take more time to triage than the other options.
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -5,7 +5,7 @@
First, thank you for considering contributing to rollup! It's people like you that make the open source community such a great community! 😊

We welcome any type of contribution, not only code. You can help with
- **QA**: file bug reports, the more details you can give the better (i.e. [REPL](https://rollupjs.org/repl)-links or repos that demonstrate the specific issue)
- **QA**: file bug reports, the more details you can give the better (i.e. [REPL](https://rollupjs.org/repl/)-links or repos that demonstrate the specific issue)
- **Marketing**: writing blog posts, howto's, printing stickers, ...
- **Community**: presenting the project at meetups, organizing a dedicated meetup for the local community, ...
- **Code**: take a look at the [open issues](https://github.com/rollup/rollup/issues). Even if you can't write code, commenting on them, showing that you care about a given issue matters. It helps us triage them.
Expand Down
10 changes: 5 additions & 5 deletions bin/src/run/batchWarnings.ts
Expand Up @@ -137,7 +137,7 @@ const deferredHandlers: {
UNRESOLVED_IMPORT: {
fn: warnings => {
title('Unresolved dependencies');
info('https://rollupjs.org/guide/en#warning-treating-module-as-external-dependency');
info('https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency');

const dependencies = new Map();
warnings.forEach(warning => {
Expand All @@ -156,7 +156,7 @@ const deferredHandlers: {
MISSING_EXPORT: {
fn: warnings => {
title('Missing exports');
info('https://rollupjs.org/guide/en#error-name-is-not-exported-by-module-');
info('https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module-');

warnings.forEach(warning => {
stderr(tc.bold(warning.importer as string));
Expand All @@ -170,7 +170,7 @@ const deferredHandlers: {
THIS_IS_UNDEFINED: {
fn: warnings => {
title('`this` has been rewritten to `undefined`');
info('https://rollupjs.org/guide/en#error-this-is-undefined');
info('https://rollupjs.org/guide/en/#error-this-is-undefined');
showTruncatedWarnings(warnings);
},
priority: 1
Expand All @@ -179,7 +179,7 @@ const deferredHandlers: {
EVAL: {
fn: warnings => {
title('Use of eval is strongly discouraged');
info('https://rollupjs.org/guide/en#avoiding-eval');
info('https://rollupjs.org/guide/en/#avoiding-eval');
showTruncatedWarnings(warnings);
},
priority: 1
Expand Down Expand Up @@ -225,7 +225,7 @@ const deferredHandlers: {
SOURCEMAP_BROKEN: {
fn: warnings => {
title(`Broken sourcemap`);
info('https://rollupjs.org/guide/en#warning-sourcemap-is-likely-to-be-incorrect');
info('https://rollupjs.org/guide/en/#warning-sourcemap-is-likely-to-be-incorrect');

const plugins = Array.from(new Set(warnings.map(w => w.plugin).filter(Boolean)));
const detail =
Expand Down
2 changes: 1 addition & 1 deletion bin/src/run/loadConfigFile.ts
Expand Up @@ -63,7 +63,7 @@ export default function loadConfigFile(
handleError({
code: 'MISSING_CONFIG',
message: 'Config file must export an options object, or an array of options objects',
url: 'https://rollupjs.org/guide/en#configuration-files'
url: 'https://rollupjs.org/guide/en/#configuration-files'
});
}

Expand Down
2 changes: 1 addition & 1 deletion docs/00-introduction.md
Expand Up @@ -8,7 +8,7 @@ Rollup is a module bundler for JavaScript which compiles small pieces of code in

### Quick start

Install with `npm install --global rollup`. Rollup can be used either through a [command line interface](guide/en#command-line-reference) with an optional configuration file, or else through its [JavaScript API](guide/en#javascript-api). Run `rollup --help` to see the available options and parameters.
Install with `npm install --global rollup`. Rollup can be used either through a [command line interface](guide/en/#command-line-reference) with an optional configuration file, or else through its [JavaScript API](guide/en/#javascript-api). Run `rollup --help` to see the available options and parameters.

> See [rollup-starter-lib](https://github.com/rollup/rollup-starter-lib) and
[rollup-starter-app](https://github.com/rollup/rollup-starter-app) to see
Expand Down
4 changes: 2 additions & 2 deletions docs/01-command-line-reference.md
Expand Up @@ -24,7 +24,7 @@ module.exports = {

It may be pertinent if you want to use the config file not only from the command line, but also from your custom scripts programmatically.

Consult the [big list of options](guide/en#big-list-of-options) for details on each option you can include in your config file.
Consult the [big list of options](guide/en/#big-list-of-options) for details on each option you can include in your config file.

```javascript
// rollup.config.js
Expand Down Expand Up @@ -238,7 +238,7 @@ Many options have command line equivalents. In those cases, any arguments passed
--treeshake.pureExternalModules Assume side-effect free externals
```

The flags listed below are only available via the command line interface. All other flags correspond to and override their config file equivalents, see the [big list of options](guide/en#big-list-of-options) for details.
The flags listed below are only available via the command line interface. All other flags correspond to and override their config file equivalents, see the [big list of options](guide/en/#big-list-of-options) for details.

#### `-h`/`--help`

Expand Down
6 changes: 3 additions & 3 deletions docs/02-javascript-api.md
Expand Up @@ -68,7 +68,7 @@ build();

#### inputOptions object

The `inputOptions` object can contain the following properties (see the [big list of options](guide/en#big-list-of-options) for full details on these):
The `inputOptions` object can contain the following properties (see the [big list of options](guide/en/#big-list-of-options) for full details on these):

```js
const inputOptions = {
Expand Down Expand Up @@ -105,7 +105,7 @@ const inputOptions = {

#### outputOptions object

The `outputOptions` object can contain the following properties (see the [big list of options](guide/en#big-list-of-options) for full details on these):
The `outputOptions` object can contain the following properties (see the [big list of options](guide/en/#big-list-of-options) for full details on these):

```js
const outputOptions = {
Expand Down Expand Up @@ -188,4 +188,4 @@ const watchOptions = {
};
```

See above for details on `inputOptions` and `outputOptions`, or consult the [big list of options](guide/en#big-list-of-options) for info on `chokidar`, `include` and `exclude`.
See above for details on `inputOptions` and `outputOptions`, or consult the [big list of options](guide/en/#big-list-of-options) for info on `chokidar`, `include` and `exclude`.
2 changes: 1 addition & 1 deletion docs/03-es-module-syntax.md
Expand Up @@ -103,7 +103,7 @@ It is bad practice to mix default and named exports in the same module, though i

### How bindings work

ES modules export *live bindings*, not values, so values can be changed after they are initially imported as per [this demo](https://rollupjs.org/repl?shareable=JTdCJTIybW9kdWxlcyUyMiUzQSU1QiU3QiUyMm5hbWUlMjIlM0ElMjJtYWluLmpzJTIyJTJDJTIyY29kZSUyMiUzQSUyMmltcG9ydCUyMCU3QiUyMGNvdW50JTJDJTIwaW5jcmVtZW50JTIwJTdEJTIwZnJvbSUyMCcuJTJGaW5jcmVtZW50ZXIuanMnJTNCJTVDbiU1Q25jb25zb2xlLmxvZyhjb3VudCklM0IlNUNuaW5jcmVtZW50KCklM0IlNUNuY29uc29sZS5sb2coY291bnQpJTNCJTIyJTdEJTJDJTdCJTIybmFtZSUyMiUzQSUyMmluY3JlbWVudGVyLmpzJTIyJTJDJTIyY29kZSUyMiUzQSUyMmV4cG9ydCUyMGxldCUyMGNvdW50JTIwJTNEJTIwMCUzQiU1Q24lNUNuZXhwb3J0JTIwZnVuY3Rpb24lMjBpbmNyZW1lbnQoKSUyMCU3QiU1Q24lNUN0Y291bnQlMjAlMkIlM0QlMjAxJTNCJTVDbiU3RCUyMiU3RCU1RCUyQyUyMm9wdGlvbnMlMjIlM0ElN0IlMjJmb3JtYXQlMjIlM0ElMjJjanMlMjIlMkMlMjJnbG9iYWxzJTIyJTNBJTdCJTdEJTJDJTIybW9kdWxlSWQlMjIlM0ElMjIlMjIlMkMlMjJuYW1lJTIyJTNBJTIybXlCdW5kbGUlMjIlN0QlMkMlMjJleGFtcGxlJTIyJTNBbnVsbCU3RA==):
ES modules export *live bindings*, not values, so values can be changed after they are initially imported as per [this demo](https://rollupjs.org/repl/?shareable=JTdCJTIybW9kdWxlcyUyMiUzQSU1QiU3QiUyMm5hbWUlMjIlM0ElMjJtYWluLmpzJTIyJTJDJTIyY29kZSUyMiUzQSUyMmltcG9ydCUyMCU3QiUyMGNvdW50JTJDJTIwaW5jcmVtZW50JTIwJTdEJTIwZnJvbSUyMCcuJTJGaW5jcmVtZW50ZXIuanMnJTNCJTVDbiU1Q25jb25zb2xlLmxvZyhjb3VudCklM0IlNUNuaW5jcmVtZW50KCklM0IlNUNuY29uc29sZS5sb2coY291bnQpJTNCJTIyJTdEJTJDJTdCJTIybmFtZSUyMiUzQSUyMmluY3JlbWVudGVyLmpzJTIyJTJDJTIyY29kZSUyMiUzQSUyMmV4cG9ydCUyMGxldCUyMGNvdW50JTIwJTNEJTIwMCUzQiU1Q24lNUNuZXhwb3J0JTIwZnVuY3Rpb24lMjBpbmNyZW1lbnQoKSUyMCU3QiU1Q24lNUN0Y291bnQlMjAlMkIlM0QlMjAxJTNCJTVDbiU3RCUyMiU3RCU1RCUyQyUyMm9wdGlvbnMlMjIlM0ElN0IlMjJmb3JtYXQlMjIlM0ElMjJjanMlMjIlMkMlMjJnbG9iYWxzJTIyJTNBJTdCJTdEJTJDJTIybW9kdWxlSWQlMjIlM0ElMjIlMjIlMkMlMjJuYW1lJTIyJTNBJTIybXlCdW5kbGUlMjIlN0QlMkMlMjJleGFtcGxlJTIyJTNBbnVsbCU3RA==):

```js
// incrementer.js
Expand Down
2 changes: 1 addition & 1 deletion docs/04-tutorial.md
Expand Up @@ -215,7 +215,7 @@ Rollup will use the dynamic import to create a separate chunk that is only loade
rollup src/main.js -f cjs -d dist
```

This will create a folder `dist` containing two files, `main.js` and `chunk-[hash].js`, where `[hash]` is a content based hash string. You can supply your own naming patterns by specifying the [`output.chunkFileNames`](guide/en#outputchunkfilenames) and [`output.entryFileNames`](guide/en#outputentryfilenames) options.
This will create a folder `dist` containing two files, `main.js` and `chunk-[hash].js`, where `[hash]` is a content based hash string. You can supply your own naming patterns by specifying the [`output.chunkFileNames`](guide/en/#outputchunkfilenames) and [`output.entryFileNames`](guide/en/#outputentryfilenames) options.

You can still run your code as before with the same output, albeit a little slower as loading and parsing of `./foo.js` will only commence once we call the exported function for the first time.

Expand Down

0 comments on commit 21b7ce4

Please sign in to comment.