electron/docs
Bret Comnes 46af3cefec Clarify remote require of relative modules
The docs for the `remote.require(module)` method were a little too terse for me to understand the behavior of relative module loading for `remote.require` and I had to run an experiment to understand the behavior (e.g. is the relative path relative to caller of `remote.require` or relative to some other path in the project related to the main process?).   I think this is correct but someone please double check my understanding.

Adding an example and additional explanation should help clarify this.  Feel free to edit the copy as needed.
2017-03-13 15:42:26 -07:00
..
api Clarify remote require of relative modules 2017-03-13 15:42:26 -07:00
development use https URLs for images 2017-02-28 21:24:31 -08:00
tutorial Merge pull request #8800 from electron/https-website 2017-03-06 09:32:20 -08:00
faq.md standardize all javascript blocks in English docs 2016-07-26 09:48:19 -07:00
glossary.md 📝 Fix a broken asar link. 2016-12-26 10:28:08 +01:00
README.md link to keyboard shortcuts from docs README 2017-02-28 08:44:28 -08:00
styleguide.md Put optional label before dash 2016-12-29 14:11:26 -08:00

Please make sure that you use the documents that match your Electron version. The version number should be a part of the page URL. If it's not, you are probably using the documentation of a development branch which may contain API changes that are not compatible with your Electron version. To view older versions of the documentation, you can browse by tag on GitHub by opening the "Switch branches/tags" dropdown and selecting the tag that matches your version.

FAQ

There are questions that are asked quite often. Check this out before creating an issue:

Guides

Tutorials

API References

Custom DOM Elements:

Modules for the Main Process:

Modules for the Renderer Process (Web Page):

Modules for Both Processes:

Development