GithubHelp home page GithubHelp logo

bfrichot / docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from system76/docs

0.0 0.0 0.0 2.3 GB

System76 support documentation site

Home Page: https://support.system76.com

JavaScript 36.06% CSS 3.13% Vue 60.81%

docs's Introduction

System76 Support Docs

The docs system is powered by NuxtJS with @nuxtjs/content, tailwindcss, and some other packages. It uses Markdown in the /content/ folder to render every article. If you don't know what Markdown is (or need a refresher), take a minute to look over the basics.

Adding Articles

All articles are stored as Markdown files under /content/. For example, take a look at the /content/upgrade-pop.md file.

To create a new support article, click the + icon at the top of the /content/ page.

Name the file something short but descriptive. This will be part of the URL, for example server-setup.md will become https://support.system76.com/articles/server-setup. Don't use spaces; instead, use dashes (-).

Then include the following text at the very top of the file (including the ---es).

---
title: Do the thing
description: >
  A more descriptive sentence or two about the page; will show up in search
  engines and on the support home page.
keywords:
  - List
  - of
  - keywords
  - about
  - this
  - page
  - System76

facebookImage: /_social/article
twitterImage: /_social/article

hidden: true
section:
---

A couple of notes:

  • After the --- line, you can type the contents of the article in markdown. Feel free to use # Heading1, ## Heading2, **bold**, _italic_, and other markdown to make the page look awesome.

  • For keyboard shortcuts, use the HTML tag <kbd>, i.e. <kbd>Alt</kbd>+<kbd>F4</kbd>.

  • The default publication status is set to hidden: true. To make your article visible, change the hidden: true to hidden: false in the top of the file.

  • To make your article visible within a section, write the section name in the section: line. For instance, to add an article to the "Switching to Linux" section, the line should be section: switching.

When you're all done, fill out the "Commit new file" form at the bottom with the description of your changes and press the "Commit changes" button.

Editing an Article

To edit or update an article, click on the article's file in GitHub. Then click the pencil "Edit this file" icon on the top-right. You can now edit the contents right on GitHub. To see what it will look like before you save it, click the "Preview changes" tab at the top.

When you're all done, fill out the "Commit changes" form at the bottom with the description of your changes and press the "Commit changes" button.

Sections

Articles will only show up under the section they are configured for. If you set hidden: true in an article, it will not be visible on any of the index pages, and you will need to know the direct URL to view it.

If you want an article to not show up on the index page, but be visible on /articles, set hidden: false and remove the section: line from the article.

To get an article to show up under Frequently Answered Questions, set section: faq.

To get an article to show up under Known Solutions, set section: solutions.

To get an article to show up under Articles, set section: articles.

Files, Images, and Links

To store files (i.e. BIOS updates), put them in the /static/files folder. If it's a BIOS/fireware update, it goes in the /static/files/firmware folder and should be named like model-version.bio.zip, i.e. meer1-0358.bio.zip.

Anything in the static/ folder will be available at the base URL. For instance, /static/files/firmware/meer1-0358.bio.zip will be downloadable at https://support.system76.com/files/firmware/meer1-0358.bio.zip.

When linking to files, please use the absolute path, i.e. /files/firmware/meer1-0358.bio.zip.

Icons

The Ubuntu logo can be included in a doc using the following HTML tag:

<font-awesome-icon :icon="['fab', 'ubuntu']"></font-awesome-icon>

You can embed this in other Markdown and Tags, for example, you can create an Pop!_OS (Super) key:

<kbd>
  <font-awesome-icon :icon="['fab', 'pop-os']"></font-awesome-icon>
</kbd>

Local Development

This site is built with NuxtJS and @nuxtjs/content. To get started, you will need to clone this repository to your local computer.

Next, you will need to setup node 14 <= and npm. The nodejs website has great documentation on how to do this.

After that, you can run npm ci to install the needed packages, and npm start to start the development site. You will then see a Listening: http://localhost:3000/ line in your console showing where you can access the development site.

To deploy changes, simply make a PR to the system76/docs GitHub repository and once it's merged, it will be deployed to the live site!

docs's People

Contributors

ahoneybun avatar aklsh avatar ampersandstorm avatar aprilelizabeth avatar bencates avatar btkostner avatar burden avatar cassidyjames avatar david-kariuki avatar djordan2 avatar doomspork avatar gangwerz avatar garnerlogan65 avatar isantop avatar jackpot51 avatar jacobgkau avatar jaxsnjohnson avatar kenhara76 avatar kolgza avatar leviport avatar linuxgnuru avatar nathandyer avatar seibz avatar serioustable avatar socialhappiness avatar storyaddict avatar thomas-zimmerman avatar vega-d avatar watchmkr avatar xeboc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.