Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

Commit 578e487

Browse files
committed
Merge branch 'master' into feature/publication-strategies
2 parents 0703076 + 9624e61 commit 578e487

File tree

7 files changed

+59
-2
lines changed

7 files changed

+59
-2
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,37 @@ To generate the api boxes, the site uses a file `data/data.js` which is generate
3131
#### Starting hexo
3232

3333
Ensure you've run `npm install`. Then simply `npm start`.
34+
35+
### Developing with local meteor source
36+
37+
When developing jsdoc documentation within the meteor code you will
38+
need to make some local modifications to get the documentation to work locally for testing.
39+
40+
1. Modify `url` in `_config.yml` so links within `localhost:4000` will not jump out to `https://docs.meteor.com`
41+
```diff
42+
- url: http://docs.meteor.com/
43+
+ url: http://localhost:4000/
44+
```
45+
2. reconnect the meteor submodule in `/code` to your local meteor folder.
46+
```bash
47+
# REMOVE submodule
48+
# Remove the submodule entry from .git/config
49+
git submodule deinit -f code
50+
51+
# Remove the submodule directory from the superproject's
52+
# .git/modules directory
53+
rm -rf .git/modules/code
54+
55+
# Remove the entry in .gitmodules and remove the submodule directory
56+
# located at path/to/submodule
57+
git rm -f code
58+
59+
# ADD your local meteor submodule
60+
git submodule add /path/to/local/meteor code
61+
```
62+
63+
3. Hexo builds if you are just changing md files in sources then
64+
hexo will watch for changes and update. If you are making changes
65+
in the `/code` folder then you will need to `npm clean && npm start`.
66+
67+
Of course, do not commit any of these changes.

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
title: Meteor API Docs
22
subtitle: API Docs
33
versions:
4+
- '2.4'
45
- '2.3'
56
- '2.2'
67
- '2.1'

jsdoc/docdata-jsdoc-template/publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
if (entry.meta && entry.meta.path) {
4949
var packagesFolder = 'packages/';
5050
var index = entry.meta.path.indexOf(packagesFolder);
51-
if (index != -1) {
51+
if (index != -1 && !entry.isprototype) {
5252
var fullFilePath = entry.meta.path.substr(index + packagesFolder.length) + '/' + entry.meta.filename;
5353
entry.filepath = fullFilePath;
5454
entry.lineno = entry.meta.lineno;

scripts/api-box.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ var importName = function(doc) {
156156
const noImportNeeded = !doc.module
157157
|| doc.scope === 'instance'
158158
|| doc.ishelper
159+
|| doc.isprototype
159160
|| doc.istemplate;
160161

161162
// override the above we've explicitly decided to (i.e. Template.foo.X)

source/api/core.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ title: Core
33
description: Documentation of core Meteor functions.
44
---
55

6+
If you prefer to watch the video, click below.
7+
8+
{% youtube 6RRVU0-Vvm8 %}
9+
610
{% apibox "Meteor.isClient" %}
711
{% apibox "Meteor.isServer" %}
812

source/api/pubsub.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ description: Documentation of Meteor's publication and subscription API.
66
These functions control how Meteor servers publish sets of records and
77
how clients can subscribe to those sets.
88

9-
If you prefer video watch [Meteor Publications 101](https://www.youtube.com/watch?v=RH2RxKgkPJY) in our [YouTube Channel](https://www.youtube.com/channel/UC3fBiJrFFMhKlsWM46AsAYw).
9+
If you prefer to watch the video, click below.
10+
11+
{% youtube RH2RxKgkPJY %}
1012

1113
{% apibox "Meteor.publish" %}
1214

source/install.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Install
33
---
44
Meteor currently supports **OS X, Windows, and Linux**. Only 64-bit is supported.
5+
Apple M1 is only supported through Rosetta at this moment.
56

67
### Prerequisites and useful information
78

@@ -10,6 +11,7 @@ Meteor currently supports **OS X, Windows, and Linux**. Only 64-bit is supported
1011
- Disabling antivirus (Windows Defender, etc.) will improve performance.
1112
- For compatibility, Linux binaries are built with CentOS 6.4 i386/amd64.
1213
- iOS development requires the latest Xcode.
14+
- **Do not install meteor npm in your project's package.json by any means, the npm library is only an installer.**
1315

1416
### Installation
1517

@@ -30,6 +32,19 @@ Only run the above command with sudo if you know what you are doing.
3032

3133
If you only use sudo because of a distribution default permission system, [check this link for fixing it](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally).
3234

35+
For Apple M1 computers, you can append Rosetta prefix as following:
36+
37+
```bash
38+
39+
arch -x86_64 npm install -g meteor
40+
41+
```
42+
43+
or select Terminal in the Applications folder, press CMD(⌘)+I and check the "Open using Rosetta" option.
44+
45+
We currently don't support Apple M1 native binaries as the latest meteor release uses Node.js 14 which doesn't have support for it until now. More info in our repository, [here](https://github.com/meteor/meteor/issues/11249#issuecomment-734327204).
46+
47+
3348
### Legacy Installation Method
3449

3550
For Linux and OS X, we are still providing the legacy installation method which uses a bash script and doesn't depend on Node.

0 commit comments

Comments
 (0)