<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: JinTeng</title>
    <description>The latest articles on DEV Community by JinTeng (@jingteng).</description>
    <link>https://dev.to/jingteng</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F603822%2F67030de3-44dc-4f5a-a77c-fbcd66a9ac36.jpeg</url>
      <title>DEV Community: JinTeng</title>
      <link>https://dev.to/jingteng</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jingteng"/>
    <language>en</language>
    <item>
      <title>Getting Start Your VuePress with CodeSandBox in 30 min</title>
      <dc:creator>JinTeng</dc:creator>
      <pubDate>Mon, 15 Nov 2021 02:54:32 +0000</pubDate>
      <link>https://dev.to/jingteng/getting-start-your-vuepress-with-codesanbox-in-30-min-5859</link>
      <guid>https://dev.to/jingteng/getting-start-your-vuepress-with-codesanbox-in-30-min-5859</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OUGi-_KC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f2rp8pjxmcts8p99vv0s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OUGi-_KC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f2rp8pjxmcts8p99vv0s.png" alt="VuePress+CodeSanBox template" width="880" height="561"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why VuePress?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Minimal setup with markdown-centered project structure helps you focus on writing.&lt;/li&gt;
&lt;li&gt;VuePress generates pre-rendered static HTML for each page, and runs as an SPA once a page is loaded.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to Quick Start?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;VuePress starter template for CodeSandbox helps you create the project with one single click.&lt;/li&gt;
&lt;li&gt;Continuous deploy your works by connecting a Git repository to a Netlify site and keeping the two in sync.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Basic VuePress Tutorial
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5qahOJqe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ttycpmvx6yd37abue1qd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5qahOJqe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ttycpmvx6yd37abue1qd.png" alt="VuePress+CodeSanBox demo" width="880" height="550"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Editing your Homepage
&lt;/h3&gt;

&lt;p&gt;Your Homepage(Index) is a &lt;code&gt;README.md&lt;/code&gt;. There is a default VuePress template.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;---
home: true
heroImage: /hero.png
actionText: CSS →
actionLink: /css/
features:
  - title: "Code Snippet"
    details: JavaScript, CSS
  - title: "Document"
    details: Note
  - title: "Link"
    details: Note
footer: Copyright © Jing, Li
---
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Config the Router to Content Pages
&lt;/h3&gt;

&lt;p&gt;Routers are mapped to your file structure.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.
├── .vuepress
├── README.md // &amp;lt;- index
├── CSS // &amp;lt;- path : /css
│   └── README.md // &amp;lt;- index of /css
├── JS
│   └── README.md
├── NOTE
│   └── README.md
└── package.json
│
└── ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Child route
&lt;/h4&gt;

&lt;p&gt;Those &lt;code&gt;.md&lt;/code&gt; files in the first hierarchy directory will be built as &lt;code&gt;.html&lt;/code&gt; files and can be accessed.&lt;/p&gt;

&lt;p&gt;eg.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;├── CSS // &amp;lt;- path : /css
│   ├── README.md // &amp;lt;- index of /css
│   └── page-one.md // &amp;lt;- /css/page-one.html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Sidebar of Content (Auto Sidebar for Single Pages)
&lt;/h3&gt;

&lt;p&gt;The sidebar of content is auto generated by markdown titles.&lt;/p&gt;

&lt;p&gt;There are two methods to set your content sidebar of all pages.&lt;/p&gt;

&lt;p&gt;Method 1 - set in config.js&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;module.exports = {
  title: "Pika Code",
  description: "Front End Notebook",
  themeConfig: {
    ...
    sidebar: 'auto'
  }
};

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Method 2 - set in specific page with yaml format&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;--------
sidebar: auto
--------
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Navigation
&lt;/h3&gt;

&lt;p&gt;You can set your navigation items in &lt;code&gt;.vuepress/config.js&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;module.exports = {
  title: "Pika Code",
  description: "Front End Notebook",
  themeConfig: {
    nav: [
      { text: "CSS", link: "/css/" },
      { text: "JS", link: "/js/" },
      { text: "NOTE", link: "/note/" }
    ]
  }
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  &lt;a href="https://v2.vuepress.vuejs.org/reference/default-theme/config.html#navbar"&gt;Child Nav&lt;/a&gt;
&lt;/h4&gt;

&lt;h3&gt;
  
  
  HTML Head
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;favicon
Add a &lt;code&gt;favicon.ico&lt;/code&gt; in &lt;code&gt;.vuepress/public&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick Start
&lt;/h2&gt;

&lt;p&gt;1.install "VuePress + CodeSanBox" template&lt;/p&gt;

&lt;p&gt;2.&lt;a href="https://vuepress.vuejs.org/guide/directory-structure.html#default-page-routing"&gt;Update Directory Structures&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.
├── .vuepress
│   ├── components
│   ├── theme
│   │   └── Layout.vue
│   ├── public // &amp;lt;- put assets
│   ├── styles
│   ├── templates
│   ├── config.js // &amp;lt;- config your title, nav ...
│   └── enhanceApp.js
│
├── README.md // &amp;lt;- index
├── guide // &amp;lt;- path : /guide
│   ├── page-one.md // &amp;lt;- /guide/page-one.html
│   └── README.md // &amp;lt;- index of /guide
└── package.json
│
└── ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3.Update Config&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;module.exports = {
  title: "Pika Code",
  description: "Front End Notebook",
  themeConfig: {
    nav: [
      { text: "CSS", link: "/css/" },
      { text: "JS", link: "/js/" },
      { text: "NOTE", link: "/note/" }
    ]
  }
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>blog</category>
      <category>netlify</category>
      <category>vuepress</category>
      <category>codesandbox</category>
    </item>
  </channel>
</rss>
