Giter Club home page Giter Club logo

autify-javascript-snippets's Introduction

autify-javascript-snippets · check-contents

Now we have a website for our JavaScript snippets 🎉

💻 Autify JavaScript Snippets

You can find detailed information about how to use each snippet on this site!


Development

Prerequisites:

  • Hugo: to run your local environment. See Install Hugo to get started.
  • Node.js: - to run tests. Visit nodejs.org to download the stable binary.

To start dev server, run

hugo serve

in the root directory of this repository and open the URL (http:/localhost:xxxx/) displayed in the console.

To execute the tests, run

npm install
npm run test

Make sure you run the tests before pushing the changes.

The test suite represents pre-publishing checklist, such as:

  • The format of your article is consistent with the template.
  • The article is localized (en -> jp).

etc.

Template

---
title: "Template"
weight: 0
ie_support: true
---

(Description)

```js
// Your JS snippet
```

Each article has attribute field like following (this part is not a markdown actually):

  • title: To be displayed as the title of the page (works as a <title> and <h1> element in the page)
  • wight: The sorting prioprity in the article list. The one with the smaller weight has the higher priority.
  • ie_support: Whether the script works in IE11 or not. true or false.

How To Add Snippets/Articles

All you have to do is just add your articles in the Markdown format. And Hugo will take care of the other stuff.

Plase a markdown (.md) file under the content/en/* directory.

The sub directories represent the categories of the snippets. Choose one that you find your article fits the most and place it under the directory.

You may create a new sub directory. That is automatically reflected to the site structure (the list of the articles displayed on the left side of the page). Make sure you also create _index.md in the new directory.

Once you done with the English article, localize it and put it under the content/ja/* directory.

The sub directory's name that the localized article to be placed must be the same as the English version.

Notes

The scripts in snippets directory are deprecated. (We don't update them anymore, but they are still hosted in the repository because some help docs might have links to them)

License

autify-javascript-snippets © Autify Engineers. Released under the Apache 2.0
Authored and maintained by Autify Engineers with help from contributors.

autify-javascript-snippets's People

Contributors

a-know avatar chikathreesix avatar fujiharuka avatar harokki avatar iwk7273 avatar macoril avatar meih avatar nasum avatar otoyo avatar ozakimami avatar rieko-araki avatar riywo avatar sfjt avatar sotayamashita avatar trknhr avatar tsuemura avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

autify-javascript-snippets's Issues

Change codeowners

Now, code owners should be a team in autifyhq. Could you create a team (like "cs&tse") and attach it to this repo? @tsuemura (because you have the permission.)

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.