Restructure the docs to put more tutorials.
This commit is contained in:
		
					parent
					
						
							
								a85db2d780
							
						
					
				
			
			
				commit
				
					
						f7cf3ad867
					
				
			
		
					 4 changed files with 10 additions and 17 deletions
				
			
		| 
						 | 
				
			
			@ -1,9 +1,9 @@
 | 
			
		|||
# Atom-Shell Documentations
 | 
			
		||||
 | 
			
		||||
## Guides
 | 
			
		||||
## Tutorials
 | 
			
		||||
 | 
			
		||||
* [Quick start](quick-start.md)
 | 
			
		||||
* [Use native modules](use-native-modules.md)
 | 
			
		||||
* [Quick start](tutorial/quick-start.md)
 | 
			
		||||
* [Use native node modules](tutorial/use-native-node-modules.md)
 | 
			
		||||
 | 
			
		||||
## Development
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -113,14 +113,8 @@ window.onbeforeunload = function(e) {
 | 
			
		|||
 | 
			
		||||
### Event: 'closed'
 | 
			
		||||
 | 
			
		||||
Emitted when the window is closed. At the time of this event, window is not
 | 
			
		||||
destroyed yet so you can still do some operations to the window (but you
 | 
			
		||||
shouldn't!).
 | 
			
		||||
 | 
			
		||||
### Event: 'destroyed'
 | 
			
		||||
 | 
			
		||||
Emitted when the memory taken by the native window is released. Usually you
 | 
			
		||||
should dereference the javascript object when received this event.
 | 
			
		||||
Emitted when the window is closed. After you have received this event you should
 | 
			
		||||
remove the reference to the window and avoid using it anymore.
 | 
			
		||||
 | 
			
		||||
### Event: 'unresponsive'
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -159,12 +153,11 @@ Get the `WebContents` of devtools of this window.
 | 
			
		|||
 | 
			
		||||
### BrowserWindow.destroy()
 | 
			
		||||
 | 
			
		||||
Destroy the window and free the memory without closing it.
 | 
			
		||||
Force closing the window, the `unload` and `beforeunload` event won't be emitted
 | 
			
		||||
for the web page, and `close` event would also not be emitted for this window,
 | 
			
		||||
but it would gurrantee the `closed` event to be emitted.
 | 
			
		||||
 | 
			
		||||
**Note:** Usually you should always call `Window.close()` to close the window,
 | 
			
		||||
**which will emit `beforeunload` and `unload` events for DOM. Only use
 | 
			
		||||
**`Window.destroy()` when the window gets into a very bad state and you want
 | 
			
		||||
**to force closing it.
 | 
			
		||||
You should only use this method when the web page has crashed.
 | 
			
		||||
 | 
			
		||||
### BrowserWindow.close()
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
# Use native modules
 | 
			
		||||
# Use native node modules
 | 
			
		||||
 | 
			
		||||
Since atom-shell is using a different V8 version from the official node, you
 | 
			
		||||
need to build native module against atom-shell's headers to use them.
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue