:memo: Simpilify the structure of API references.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 5 May 2014 06:24:57 +0000 (14:24 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 5 May 2014 06:24:57 +0000 (14:24 +0800)
19 files changed:
docs/README.md
docs/api/app.md [moved from docs/api/browser/app.md with 100% similarity]
docs/api/auto-updater.md [moved from docs/api/browser/auto-updater.md with 100% similarity]
docs/api/browser-window.md [moved from docs/api/browser/browser-window.md with 99% similarity]
docs/api/clipboard.md [moved from docs/api/common/clipboard.md with 100% similarity]
docs/api/crash-reporter.md [moved from docs/api/common/crash-reporter.md with 100% similarity]
docs/api/dialog.md [moved from docs/api/browser/dialog.md with 100% similarity]
docs/api/frameless-window.md [moved from docs/api/browser/frameless-window.md with 100% similarity]
docs/api/ipc-browser.md [moved from docs/api/browser/ipc-browser.md with 100% similarity]
docs/api/ipc-renderer.md [moved from docs/api/renderer/ipc-renderer.md with 93% similarity]
docs/api/menu-item.md [moved from docs/api/browser/menu-item.md with 100% similarity]
docs/api/menu.md [moved from docs/api/browser/menu.md with 100% similarity]
docs/api/power-monitor.md [moved from docs/api/browser/power-monitor.md with 100% similarity]
docs/api/protocol.md [moved from docs/api/browser/protocol.md with 100% similarity]
docs/api/remote.md [moved from docs/api/renderer/remote.md with 98% similarity]
docs/api/screen.md [moved from docs/api/common/screen.md with 100% similarity]
docs/api/shell.md [moved from docs/api/common/shell.md with 100% similarity]
docs/tutorial/quick-start.md
docs/tutorial/use-native-node-modules.md [moved from docs/tutorial/use-native-node-module.md with 100% similarity]

index a4dbccd..816febb 100644 (file)
@@ -1,4 +1,4 @@
-# Atom Shell Documentations
+# Atom Shell documents
 
 ## Tutorials
 
 * [Build instructions (Windows)](development/build-instructions-windows.md)
 * [Build instructions (Linux)](development/build-instructions-linux.md)
 
-## API References
+## API references
 
-Renderer side modules:
+Browser side modules:
 
-* [ipc (renderer)](api/renderer/ipc-renderer.md)
-* [remote](api/renderer/remote.md)
+* [app](api/app.md)
+* [auto-updater](api/auto-updater.md)
+* [browser-window](api/browser-window.md)
+* [dialog](api/dialog.md)
+* [ipc (browser)](api/ipc-browser.md)
+* [menu](api/menu.md)
+* [menu-item](api/menu-item.md)
+* [power-monitor](api/power-monitor.md)
+* [protocol](api/protocol.md)
 
-Browser side modules:
+Renderer side modules:
 
-* [app](api/browser/app.md)
-* [auto-updater](api/browser/auto-updater.md)
-* [browser-window](api/browser/browser-window.md)
-* [dialog](api/browser/dialog.md)
-* [ipc (browser)](api/browser/ipc-browser.md)
-* [menu](api/browser/menu.md)
-* [menu-item](api/browser/menu-item.md)
-* [power-monitor](api/browser/power-monitor.md)
-* [protocol](api/browser/protocol.md)
+* [ipc (renderer)](api/ipc-renderer.md)
+* [remote](api/remote.md)
 
 Common modules:
 
-* [clipboard](api/common/clipboard.md)
-* [crash-reporter](api/common/crash-reporter.md)
-* [screen](api/common/screen.md)
-* [shell](api/common/shell.md)
+* [clipboard](api/clipboard.md)
+* [crash-reporter](api/crash-reporter.md)
+* [screen](api/screen.md)
+* [shell](api/shell.md)
similarity index 100%
rename from docs/api/browser/app.md
rename to docs/api/app.md
similarity index 99%
rename from docs/api/browser/browser-window.md
rename to docs/api/browser-window.md
index 7768e0b..e31348e 100644 (file)
@@ -346,7 +346,7 @@ You can write received `image` directly to a `.png` file, or you can base64
 encode it and use data URL to embed the image in HTML.
 
 **Note:** Be sure to read documents on remote buffer in
-[remote](../renderer/remote.md) if you are going to use this API in renderer
+[remote](remote.md) if you are going to use this API in renderer
 process.
 
 ### BrowserWindow.loadUrl(url)
similarity index 93%
rename from docs/api/renderer/ipc-renderer.md
rename to docs/api/ipc-renderer.md
index 5c10126..b5f1157 100644 (file)
@@ -5,7 +5,7 @@ asynchronous messages to the browser, and also receive messages sent from
 browser. If you want to make use of modules of browser from renderer, you
 might consider using the [remote](remote.md) module.
 
-See [ipc (browser)](../browser/ipc-browser.md) for examples.
+See [ipc (browser)](ipc-browser.md) for examples.
 
 ## ipc.send(channel[, args...])
 
similarity index 100%
rename from docs/api/browser/menu.md
rename to docs/api/menu.md
similarity index 98%
rename from docs/api/renderer/remote.md
rename to docs/api/remote.md
index b3bfda2..4440dc8 100644 (file)
@@ -136,7 +136,7 @@ Returns the object returned by `require(module)` in the browser process.
 
 ## remote.getCurrentWindow()
 
-Returns the [BrowserWindow](../browser/browser-window.md) object which
+Returns the [BrowserWindow](browser-window.md) object which
 represents current window.
 
 ## remote.getGlobal(name)
similarity index 100%
rename from docs/api/common/screen.md
rename to docs/api/screen.md
similarity index 100%
rename from docs/api/common/shell.md
rename to docs/api/shell.md
index 3e7ce4f..fb4f61f 100644 (file)
@@ -26,8 +26,8 @@ scripts.
 
 In traditional node.js applications, communication between server side and
 client side are usually done by web sockets. In atom-shell, we have provided
-the [ipc](../api/renderer/ipc-renderer.md) module for browser side to client
-communication, and the [remote](../api/renderer/remote.md) module for easy RPC
+the [ipc](../api/ipc-renderer.md) module for browser side to client
+communication, and the [remote](../api/remote.md) module for easy RPC
 support.
 
 ### Web page and node.js
@@ -39,7 +39,7 @@ in web pages so you could access native resources in web pages, just like
 
 But unlike node-webkit, you could not do native GUI related operations in web
 pages, instead you need to do them on the browser side by sending messages or
-use the easy [remote](../api/renderer/remote.md) module.
+use the easy [remote](../api/remote.md) module.
 
 
 ## Write your first atom-shell app