Coder Social home page Coder Social logo

guygreenleaf / docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-amplify/docs

0.0 0.0 0.0 181.91 MB

AWS Amplify Framework Documentation

Home Page: https://docs.amplify.aws

License: Apache License 2.0

JavaScript 10.71% HTML 0.57% TypeScript 78.26% SCSS 5.22% CSS 5.23%

docs's Introduction

Amplify Framework Documentation

DiscordChat

https://docs.amplify.aws

Getting Started

  1. Fork this repo.
  2. yarn && yarn dev
  3. http://localhost:3000/ should open automatically.

Contributing

We welcome contributions to the documentation site! Please verify your changes locally followed by a PR against our main branch. After your PR is reviewed and all tests pass, it will be merged and the branch will be deleted.

Branches

  • main - at parity with our production site https://docs.amplify.aws/
  • gh-pages - used to handle redirects from v1 of the documentation site. This should not be deleted.

Authoring Pages

Below is a full description of how to author pages. For now though, trigger the dev script (yarn dev).

Docs are generated using Next.js, please refer to their docs on how to create pages as a primer.

The root-level src folder is the only directory you need touch in order to CRUD pages.

Within this folder exists a pages/index.tsx file. This will be rendered as a page at the route /. Within the src/pages/lib/q/platform/ folder is a [platform].mdx file, which will be rendered as a page at the route /lib.

In order to have the page render properly and display in the sidebar, please place your page and it's route in src/directory/directory.js

IMPORTANT: every page has to have a title and description meta field.

The markdown body is parsed as MDX and can include any valid HTML or JSX.

To inline fragments, and have them conditionally render based off selected platform, we add the condition to the Fragments tag:

import js from "/src/fragments/lib/datastore/js/conflict.mdx";

<Fragments fragments={{js: js}} />;

This fragment would exist in: pages/src/fragments/lib/datastore/js/conflict.mdx

Tab-switchable Blocks

BlockSwitcher allows you to organize blocks of content into tabs. This is useful for presenting a reader different instructions based upon framework (e.g. Vue.js vs. React) or language (e.g. Java vs. Kotlin). Here's an example of its usage:

<BlockSwitcher>

<Block name="JavaScript">

```js
const a = "a";
```

</Block>

<Block name="TypeScript">

```ts
const a: "a" = "a";
```

</Block>

<Block name="Rust">

```rust
let mut a = String::from("a");
```

</Block>

</BlockSwitcher>

docs's People

Contributors

harrysolovay avatar renebrandel avatar brene avatar jordanranz avatar mlabieniec avatar undefobj avatar mauerbac avatar powerful23 avatar dabit3 avatar jpignata avatar palpatim avatar nikhil-dabhade avatar swaminator avatar kaustavghosh06 avatar haverchuck avatar elorzafe avatar sammartinez avatar amplifiyer avatar unleashedmind avatar desokroshan avatar ericclemmons avatar jamesonwilliams avatar drochetti avatar eeatonaws avatar wooj2 avatar swyxio avatar richardmcclellan avatar lawmicha avatar treksoft avatar rohandubal 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.