Skip to content

Commit 2979ec1

Browse files
docs(app): removed old docs folder (ReactiveX#5338)
Closes: ReactiveX#4604
1 parent 22c6137 commit 2979ec1

37 files changed

+106
-3363
lines changed

Diff for: .github/ISSUE_TEMPLATE/support-question.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
---
22
name: Support Question
3-
about: 'If you have a question, please check out our StackOverflow! '
3+
about: "If you have a question, please check out our StackOverflow! "
4+
---We primarily use GitHub as an issue tracker; for usage and support questions, please check out these resources below. Thanks!
45

56
---
67

7-
We primarily use GitHub as an issue tracker; for usage and support questions, please check out these resources below. Thanks!
8+
- StackOverflow: https://stackoverflow.com/questions/tagged/rxjs using the tag `rxjs`
9+
- Also have a look at the readme for more information, possibly can have some answers already:
810

9-
---
10-
* StackOverflow: https://stackoverflow.com/questions/tagged/rxjs using the tag `rxjs`
11-
* Also have a look at the readme for more information, possibly can have some answers already:
12-
- https://github.com/ReactiveX/rxjs/blob/master/README.md
13-
- https://github.com/ReactiveX/rxjs/blob/master/MIGRATION.md
14-
- https://github.com/ReactiveX/rxjs/blob/master/doc/pipeable-operators.md
11+
* https://github.com/ReactiveX/rxjs/blob/master/README.md
12+
* https://github.com/ReactiveX/rxjs/blob/master/MIGRATION.md

Diff for: .github/PULL_REQUEST_TEMPLATE.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ If your PR is the addition of a new operator, please make sure all these boxes a
88
- [ ] If possible, write a `asDiagram` test case too, for PNG diagram generation purposes
99
- [ ] The spec file should have a type definition test at the end of the spec to verify type definition for various use cases
1010
- [ ] The operator must be documented in JSDoc style in the implementation file, including also the PNG marble diagram image
11-
- [ ] The operator should be listed in `doc/operators.md` in a category of operators
11+
- [ ] The operator should be listed in `docs_app/content/guide/operators.md` in a category of operators
1212
- [ ] The operator should also be documented. See [Documentation Guidelines](../CONTRIBUTING.md).
13-
- [ ] It should also be inserted in the operator decision tree file `doc/decision-tree-widget/tree.yml`
1413
- [ ] You may need to update `MIGRATION.md` if the operator differs from the corresponding one in RxJS v4
1514
-->
1615

Diff for: CONTRIBUTING.md

+76-68
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Contents
2424
- [Footer](#footer)
2525

2626
---
27+
2728
- Related documents
2829
- [Creating Operators](doc/operator-creation.md)
2930
- [Writing Marble Tests](doc/writing-marble-tests.md)
@@ -33,80 +34,82 @@ Contents
3334
(This document is a work in progress and is subject to change)
3435

3536
## Submitting a Pull Request (PR)
37+
3638
Before you submit your Pull Request (PR) consider the following guidelines:
3739

38-
* Search [GitHub](https://github.com/ReactiveX/RxJS/pulls) for an open or closed PR
40+
- Search [GitHub](https://github.com/ReactiveX/RxJS/pulls) for an open or closed PR
3941
that relates to your submission. You don't want to duplicate effort.
40-
* Make your changes in a new git branch:
42+
- Make your changes in a new git branch:
4143

42-
```shell
43-
git checkout -b my-fix-branch master
44-
```
44+
```shell
45+
git checkout -b my-fix-branch master
46+
```
4547

46-
* Create your patch, following [code style guidelines](#coding-style-guidelines), and **including appropriate test cases**.
47-
* Run the full test suite and ensure that all tests pass.
48-
* Run the micro and macro performance tests against your feature branch and compare against master
48+
- Create your patch, following [code style guidelines](#coding-style-guidelines), and **including appropriate test cases**.
49+
- Run the full test suite and ensure that all tests pass.
50+
- Run the micro and macro performance tests against your feature branch and compare against master
4951
to ensure performance wasn't changed for the worse.
50-
* Commit your changes using a descriptive commit message that follows our
52+
- Commit your changes using a descriptive commit message that follows our
5153
[commit message guidelines](#commit-message-guidelines). Adherence to these conventions
5254
is necessary because release notes are automatically generated from these messages.
5355

54-
```shell
55-
git commit -a
56-
```
56+
```shell
57+
git commit -a
58+
```
59+
5760
Note: the optional commit `-a` command line option will automatically "add" and "rm" edited files.
5861

59-
* Push your branch to GitHub:
62+
- Push your branch to GitHub:
6063

61-
```shell
62-
git push origin my-fix-branch
63-
```
64+
```shell
65+
git push origin my-fix-branch
66+
```
67+
68+
- In GitHub, send a pull request to `RxJS:master`.
69+
- If we suggest changes then:
6470

65-
* In GitHub, send a pull request to `RxJS:master`.
66-
* If we suggest changes then:
67-
* Make the required updates.
68-
* Re-run the test suites to ensure tests are still passing.
69-
* Re-run performance tests to make sure your changes didn't hurt performance.
70-
* Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
71+
- Make the required updates.
72+
- Re-run the test suites to ensure tests are still passing.
73+
- Re-run performance tests to make sure your changes didn't hurt performance.
74+
- Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
7175

7276
```shell
7377
git rebase master -i
7478
git push -f
7579
```
7680

77-
* When updating your feature branch with the requested changes, please do not overwrite the commit history, but rather contain the changes in new commits. This is for the sake of a clearer and easier review process.
81+
- When updating your feature branch with the requested changes, please do not overwrite the commit history, but rather contain the changes in new commits. This is for the sake of a clearer and easier review process.
7882

7983
That's it! Thank you for your contribution!
8084
81-
8285
### After your pull request is merged
8386
8487
After your pull request is merged, you can safely delete your branch and pull the changes
8588
from the main (upstream) repository:
8689
87-
* Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
90+
- Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
8891
89-
```shell
90-
git push origin --delete my-fix-branch
91-
```
92+
```shell
93+
git push origin --delete my-fix-branch
94+
```
9295
93-
* Check out the master branch:
96+
- Check out the master branch:
9497
95-
```shell
96-
git checkout master -f
97-
```
98+
```shell
99+
git checkout master -f
100+
```
98101
99-
* Delete the local branch:
102+
- Delete the local branch:
100103
101-
```shell
102-
git branch -D my-fix-branch
103-
```
104+
```shell
105+
git branch -D my-fix-branch
106+
```
104107
105-
* Update your master with the latest upstream version:
108+
- Update your master with the latest upstream version:
106109
107-
```shell
108-
git pull --ff upstream master
109-
```
110+
```shell
111+
git pull --ff upstream master
112+
```
110113
111114
## Coding Style Guidelines
112115
@@ -121,15 +124,14 @@ from the main (upstream) repository:
121124
- The documentation is auto-generated directly from the source code.
122125
- In short: From the source code we generate JSON documents, describing each operator, function ... and render this JSON within an Angular application
123126
- The folder `docs-app` contains everything you need for building and developing the docs
124-
- the folder `doc` used to be the documentation, but should remain until all content is transferred.
125127
- The [Documentation README](docs_app/README.md) will support you
126128
- After a PR is merged to master the docs will be published to https://rxjs.dev/
127129
128130
## Unit Tests
129131
130132
Unit tests are located under the [spec directory](/spec). Unit tests over synchronous operators and operations
131133
can be written in a standard [chai](https://www.chaijs.com/) style. Unit tests written against any
132-
asynchronous operator should be written in [Marble Test Style outlined in detail here](doc/writing-marble-tests.md).
134+
asynchronous operator should be written in [Marble Test Style outlined in detail here](doccs_app/content/guide/testing/internal-marble-tests.md).
133135
134136
Each operator under test must be in its own file to cover the following cases:
135137
@@ -148,26 +150,26 @@ then it must cover the following cases:
148150
- If an error is thrown
149151
150152
### CI Tests
153+
151154
- Using [Travis](https://travis-ci.org/) on your forked version of RxJS will allow running CI tests on that fork before submitting a PR to master
152-
- Simply create a `Travis` account and add your fork as a new project
155+
- Simply create a `Travis` account and add your fork as a new project
153156
- [Sauce Labs](https://saucelabs.com/) setup will allow performing automated browser tests on the fork. Since `saucelabs` doesn't perform browser tests on a PR, this will help verify test results before PR's are checked into master.
154-
- In your `Travis` repo configuration, set the environment variables SAUCE_USERNAME and SAUCE_ACCESS_KEY to your `saucelabs` account ([reference](https://cloud.githubusercontent.com/assets/1210596/12679038/b9ba4eb6-c656-11e5-8c9b-b063c9a3f9dc.png))
157+
- In your `Travis` repo configuration, set the environment variables SAUCE_USERNAME and SAUCE_ACCESS_KEY to your `saucelabs` account ([reference](https://cloud.githubusercontent.com/assets/1210596/12679038/b9ba4eb6-c656-11e5-8c9b-b063c9a3f9dc.png))
155158
- As master runs both of these tests per each check in, it'd be welcome to setup those test before creating your PR
156159

157160
## Performance Tests
158161

159162
One of the primary goals of this library is (and will continue to be) great performance. As such, we've employed a variety of performance
160163
testing techniques.
161164
162-
- DON'T labor over minute variations in ops/sec or milliseconds, there will always be variance in perf test results.
163-
- DON'T alter a performance test unless absolutely necessary. Performance tests may be compared to previous results from previous builds.
164-
- DO run tests multiple times and make sure the margins of error are low
165-
- DO run tests in your feature branches and compare them to master
166-
- DO add performance tests for all new operators
167-
- DO add performance tests that you feel are missing from other operators
168-
- DO add additional performance tests for all worthy code paths. If you develop an operator with special handling for scalar observables,
169-
please add tests for those scenarios
170-
165+
- DON'T labor over minute variations in ops/sec or milliseconds, there will always be variance in perf test results.
166+
- DON'T alter a performance test unless absolutely necessary. Performance tests may be compared to previous results from previous builds.
167+
- DO run tests multiple times and make sure the margins of error are low
168+
- DO run tests in your feature branches and compare them to master
169+
- DO add performance tests for all new operators
170+
- DO add performance tests that you feel are missing from other operators
171+
- DO add additional performance tests for all worthy code paths. If you develop an operator with special handling for scalar observables,
172+
please add tests for those scenarios
171173
172174
### Macro
173175
@@ -187,7 +189,6 @@ npm run build_all
187189
protractor protractor.conf.js
188190
```
189191
190-
191192
### Micro
192193
193194
[Micro performance tests](perf/micro) really only serve to test operations per second. They're quick and easy to develop, and provide a reasonable look into the
@@ -208,13 +209,14 @@ node perf/micro zip
208209

209210
## Commit Message Guidelines
210211

211-
We have very precise rules over how our git commit messages can be formatted. This leads to **more
212+
We have very precise rules over how our git commit messages can be formatted. This leads to **more
212213
readable messages** that are easy to follow when looking through the **project history**. But also,
213214
we use the git commit messages to **generate the RxJS change log**. Helper script `npm run commit`
214215
provides command line based wizard to format commit message easily.
215216

216217
### Commit Message Format
217-
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
218+
219+
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
218220
format that includes a **type**, a **scope** and a **subject**:
219221

220222
```
@@ -231,38 +233,44 @@ Any line of the commit message cannot be longer than 100 characters! This allows
231233
to read on GitHub as well as in various git tools.
232234
233235
### Revert
234-
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
236+
237+
If the commit reverts a previous commit, it should begin with `revert:`, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
235238
236239
### Type
240+
237241
Must be one of the following:
238242
239-
* **feat**: A new feature
240-
* **fix**: A bug fix
241-
* **docs**: Documentation only changes
242-
* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing
243+
- **feat**: A new feature
244+
- **fix**: A bug fix
245+
- **docs**: Documentation only changes
246+
- **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing
243247
semi-colons, etc)
244-
* **refactor**: A code change that neither fixes a bug nor adds a feature
245-
* **perf**: A code change that improves performance
246-
* **test**: Adding missing tests
247-
* **chore**: Changes to the build process or auxiliary tools and libraries such as documentation
248+
- **refactor**: A code change that neither fixes a bug nor adds a feature
249+
- **perf**: A code change that improves performance
250+
- **test**: Adding missing tests
251+
- **chore**: Changes to the build process or auxiliary tools and libraries such as documentation
248252
generation
249253
250254
### Scope
255+
251256
The scope could be anything specifying the place of the commit change. For example
252257
`Observable`, `Subject`, `switchMap`, etc.
253258
254259
### Subject
260+
255261
The subject contains succinct description of the change:
256262
257-
* use the imperative, present tense: "change" not "changed" nor "changes"
258-
* don't capitalize first letter
259-
* no dot (.) at the end
263+
- use the imperative, present tense: "change" not "changed" nor "changes"
264+
- don't capitalize first letter
265+
- no dot (.) at the end
260266
261267
### Body
268+
262269
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
263270
The body should include the motivation for the change and contrast this with previous behavior.
264271
265272
### Footer
273+
266274
The footer should contain any information about **Breaking Changes** and is also the place to
267275
reference GitHub issues that this commit **Closes**.
268276

Diff for: README.md

+19-17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<img src="doc/asset/Rx_Logo_S.png" alt="RxJS Logo" width="86" height="86"> RxJS: Reactive Extensions For JavaScript
2-
======================================
3-
1+
# <img src="docs_app/assets/Rx_Logo_S.png" alt="RxJS Logo" width="86" height="86"> RxJS: Reactive Extensions For JavaScript
42

53
[![CircleCI](https://circleci.com/gh/ReactiveX/rxjs/tree/master.svg?style=svg)](https://circleci.com/gh/ReactiveX/rxjs/tree/master)
64
[![npm version](https://badge.fury.io/js/rxjs.svg)](http://badge.fury.io/js/rxjs)
@@ -16,9 +14,8 @@ Reactive Extensions Library for JavaScript. This is a rewrite of [Reactive-Exten
1614

1715
- [Code of Conduct](CODE_OF_CONDUCT.md)
1816
- [Contribution Guidelines](CONTRIBUTING.md)
19-
- [Maintainer Guidelines](doc/maintainer-guidelines.md)
20-
- [Creating Operators](doc/operator-creation.md)
21-
- [API Documentation (WIP)](https://rxjs.dev/)
17+
- [Maintainer Guidelines](doc_app/content/maintainer-guidelines.md)
18+
- [API Documentation](https://rxjs.dev/)
2219

2320
## Versions In This Repository
2421

@@ -42,13 +39,15 @@ npm install rxjs
4239
It's recommended to pull in the Observable creation methods you need directly from `'rxjs'` as shown below with `range`. And you can pull in any operator you need from one spot, under `'rxjs/operators'`.
4340

4441
```ts
45-
import { range } from 'rxjs';
46-
import { map, filter } from 'rxjs/operators';
47-
48-
range(1, 200).pipe(
49-
filter(x => x % 2 === 1),
50-
map(x => x + x)
51-
).subscribe(x => console.log(x));
42+
import { range } from "rxjs";
43+
import { map, filter } from "rxjs/operators";
44+
45+
range(1, 200)
46+
.pipe(
47+
filter(x => x % 2 === 1),
48+
map(x => x + x)
49+
)
50+
.subscribe(x => console.log(x));
5251
```
5352

5453
### CDN
@@ -63,10 +62,12 @@ The global namespace for rxjs is `rxjs`:
6362
const { range } = rxjs;
6463
const { map, filter } = rxjs.operators;
6564

66-
range(1, 200).pipe(
67-
filter(x => x % 2 === 1),
68-
map(x => x + x)
69-
).subscribe(x => console.log(x));
65+
range(1, 200)
66+
.pipe(
67+
filter(x => x % 2 === 1),
68+
map(x => x + x)
69+
)
70+
.subscribe(x => console.log(x));
7071
```
7172

7273
## Goals
@@ -90,4 +91,5 @@ Run `npm run build_perf` or `npm run perf` to run the performance tests with `pr
9091
Run `npm run perf_micro [operator]` to run micro performance test benchmarking operator.
9192

9293
## Adding documentation
94+
9395
We appreciate all contributions to the documentation of any type. All of the information needed to get the docs app up and running locally as well as how to contribute can be found in the [documentation directory](./docs_app).

Diff for: doc/asset/devtools-welcome.js

-15
This file was deleted.

0 commit comments

Comments
 (0)