소스 검색

A first draft of an about page.

Jason Grout 9 년 전
부모
커밋
29300e20af
3개의 변경된 파일35개의 추가작업 그리고 1개의 파일을 삭제
  1. 30 1
      src/about/plugin.ts
  2. 4 0
      src/default-theme/about.css
  3. 1 0
      src/default-theme/index.css

+ 30 - 1
src/about/plugin.ts

@@ -22,7 +22,36 @@ const aboutExtension = {
     widget.id = 'about-jupyterlab';
     widget.title.text = 'About';
     widget.title.closable = false;
-    widget.node.textContent = 'hello, world';
+    widget.node.innerHTML = `
+<h1>Welcome to the JupyterLab alpha preview</h1>
+
+<p>This is an alpha-level preview of the JupyterLab environment.  Here is a brief description of some of the things you'll find in this demo.</p>
+
+<h2>File Browser</h2>
+
+<p>The file browser is toggled by clicking on the "Files" tab on the left. Navigate into directories by double-clicking, and use the breadcrumbs at the top to navigate out. Create a new file/directory by clicking the plus icon at the top. Click the middle icon to upload files,and click the last icon to reload the file listing. Drag and drop files to move them to subdirectories. Click on a selected file to rename it. Sort the list by clicking on a column header. Open a file by double-clicking it or dragging it into the main area. Opening an image displays the image. Opening a code file opens a code editor. Opening a notebook opens a very preliminary proof-of-concept <strong>non-executable</strong> view of the notebook.</p>
+
+<h2>Command Palette</h2>
+
+<p>The command palette is toggled by clicking on the "Commands" tab on the left. Execute a command by clicking, or navigating with your arrow keys and pressing Enter. Filter commands by typing in the text box at the top of the palette. The palette is organized into categories, and you can filter on a single category by clicking on the category header or by typing the header surrounded by colons in the search input (e.g., <code>:file:</code>).</p>
+
+<p>You can try these things out from the command palette:</p>
+
+<ul>
+<li>Open a new terminal (requires OS X or Linux)</li>
+<li>Open a new file</li>
+<li>Save a file</li>
+<li>Open up a help panel on the right</li>
+</ul>
+
+<h2>Main area</h2>
+
+<p>The main area is divided into panels of tabs. Drag a tab around the area to split the main area in different ways. Drag a tab to the center of a panel to move a tab without splitting the panel (in this case, the whole panel will highlight, instead of just a portion). Resize panels by dragging their borders (be aware that panels and sidebars also have a minimum width). A file that contains changes to be saved has a star for a close icon.</p>
+
+<h2>Notebook</h2>
+
+<p>Opening a notebook will open a very preliminary proof-of-concept notebook view. <strong>You will not be able to execute cells yet.</strong> We are currently working on bringing the notebook up to speed.</p>
+`;
     app.shell.addToMainArea(widget);
   }
 }

+ 4 - 0
src/default-theme/about.css

@@ -0,0 +1,4 @@
+#about-jupyterlab {
+    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+    padding: 2em;    
+}

+ 1 - 0
src/default-theme/index.css

@@ -8,6 +8,7 @@
 @import url('~jupyter-js-ui/lib/theme.css');
 @import './commandpalette.css';
 @import './help.css';
+@import './about.css';
 
 body {
   margin: 0;