Linkify the docs in default_app.
This commit is contained in:
		
					parent
					
						
							
								c6448d0607
							
						
					
				
			
			
				commit
				
					
						f943f54ad5
					
				
			
		
					 1 changed files with 11 additions and 7 deletions
				
			
		| 
						 | 
					@ -47,6 +47,7 @@
 | 
				
			||||||
      font-size: 40px;
 | 
					      font-size: 40px;
 | 
				
			||||||
      line-height: 300px;
 | 
					      line-height: 300px;
 | 
				
			||||||
      text-align: center;
 | 
					      text-align: center;
 | 
				
			||||||
 | 
					      -webkit-user-select: none;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    #holder.hover {
 | 
					    #holder.hover {
 | 
				
			||||||
      border: 4px dashed #999;
 | 
					      border: 4px dashed #999;
 | 
				
			||||||
| 
						 | 
					@ -59,14 +60,16 @@
 | 
				
			||||||
    var execPath = require('remote').process.execPath;
 | 
					    var execPath = require('remote').process.execPath;
 | 
				
			||||||
    var command = execPath + ' path-to-your-app';
 | 
					    var command = execPath + ' path-to-your-app';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var openWiki = function() {
 | 
					    document.onclick = function(e) {
 | 
				
			||||||
      require('shell').openExternal('https://github.com/atom/atom-shell/blob/master/docs/tutorial/quick-start.md');
 | 
					      e.preventDefault();
 | 
				
			||||||
    }
 | 
					      if (e.target.tagName == 'A')
 | 
				
			||||||
 | 
					        require('shell').openExternal(e.target.href);
 | 
				
			||||||
 | 
					      return false;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
    document.ondragover = document.ondrop = function(e) {
 | 
					    document.ondragover = document.ondrop = function(e) {
 | 
				
			||||||
      e.preventDefault();
 | 
					      e.preventDefault();
 | 
				
			||||||
      return false;
 | 
					      return false;
 | 
				
			||||||
    }
 | 
					    };
 | 
				
			||||||
  </script>
 | 
					  </script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <h2>Welcome to Atom Shell</h2>
 | 
					  <h2>Welcome to Atom Shell</h2>
 | 
				
			||||||
| 
						 | 
					@ -80,8 +83,9 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <p>
 | 
					  <p>
 | 
				
			||||||
  The <code>path-to-your-app</code> should be the path to your own atom-shell
 | 
					  The <code>path-to-your-app</code> should be the path to your own atom-shell
 | 
				
			||||||
  app, you can read the <a href="javascript:openWiki()">Quick Start</a> guide
 | 
					  app, you can read the <a href='https://github.com/atom/atom-shell/blob/master/docs/tutorial/quick-start.md'>quick start</a>
 | 
				
			||||||
  in atom-shell's docs on how to write one.
 | 
					  guide in atom-shell's <a href='https://github.com/atom/atom-shell/blob/master/docs'>docs</a>
 | 
				
			||||||
 | 
					  on how to write one.
 | 
				
			||||||
  </p>
 | 
					  </p>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <p>
 | 
					  <p>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue