Coder Social home page Coder Social logo

infinum / eightshift-docs Goto Github PK

View Code? Open in Web Editor NEW
79.0 9.0 26.0 80.96 MB

A documentation website for Eightshift open source projects

Home Page: https://eightshift.com

License: MIT License

JavaScript 68.73% HTML 0.06% CSS 0.98% MDX 30.24%
boilerplate wordpress worpress-plugin wordpress-theme wordpress-development gutenberg gutenberg-boilerplate blockeditor open-source

eightshift-docs's Introduction

image

GitHub tag GitHub stars license

Eightshift Docs

A documentation website for Eightshift open source projects.

Visit:

https://eightshift.com/.

To run docs locally:

  1. Clone this repo
  2. Navigate to website folder inside the repo
  3. Run npm install
  4. Run npm start

Deployment is done through GitHub Actions by pushing the code to the main branch.

Who do I talk to?

If you have any questions or problems, please open an issue on github and we will do our best to give you a timely answer.

Maintainers

Eightshift Docs is maintained and sponsored by Eightshift and Infinum.

License

Eightshift Docs ยฉ2021 Eightshift and Infinum. It is free software, and may be redistributed under the terms specified in the LICENSE file.

eightshift-docs's People

Contributors

darkokukovec avatar dependabot[bot] avatar dingo-d avatar gabriel-glo avatar goranalkovic-infinum avatar himanshu-03 avatar iobrado avatar iruzevic avatar ivantomica avatar jerryspecter avatar kancijan avatar metardev avatar moonbyt3 avatar piqusy avatar volfkarlo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

eightshift-docs's Issues

Add custom fonts example

I'll add a docs page for adding custom fonts and generating @font-face properties with postCssFontMagician.

[FEATURE] Add chapter on reusable blocks

They are super useful, especially when you need to have a partial that will be shown on all the pages (footer partial etc.).

We should explain:

  • What reusable blocks are
  • How to register the menu that will display them
  • Example of usage (partials)

[FEATURE] Add a boilerplate 4 -> 5 mirgation guide

We were discussing in the slack how to migrate from old to a new version and maybe that could be added as a chapter in the docs, not overly detailed, just some basic steps (list of things to do).

Could be useful if we want to move older projects to new ones, but also if anybody using the older version would like to upgrade.

New folder structure

Main nav:

  • Get Started
  • Docs
  • Storybook

Get Started nav:

  • Theme
  • Plugin

Docs Nav:

  • The Basic
    -- Libs
    -- Frontend Libs
  • Guids
    -- ...
  • Advance
    -- ....

[BUG] Search seems to be broken

No matter what I search for, it looks broken and returns page not found ๐Ÿคท๐Ÿผโ€โ™‚๏ธ

Screen.Recording.2021-01-25.at.14.41.19.mov

List of code examples

A working list of examples we should write at some point. If you're working on one you should open a new issue and assign it to yourself.

Also feel free to add example ideas here:

  • Register custom post type
  • Register custom taxonomy
  • Use custom fonts
  • Copy existing block / component
  • Add new block / component
  • Disable core blocks (only allow our custom blocks)
  • Use of DI container (libs)

[FEATURE] Update to latest version

We should update the docusaurus and all the libs to the latest version to see if there are any improvements.

Note: last time this was attempted, there were some breaking issues with webpack.

Split the docs for libs and frontend libs

Currently, we don't have any documentation on what frontend libs helpers we have on the JS side. For scss we have the generated docs, but nothing on things like responsiveSelectors and how to use them.

Add With Select details

Explain how to use withSelect

import { withSelect } from '@wordpress/data';

const ImageInfiniteEditorWithSelect = (props) => {
  const {
    attributes: {
      blockClass,
      media,
    },
  } = props;

  return (
    <div className={blockClass}>
      {
        media.map((item) => {
          return (<ImageEditor
            blockClass={blockClass}
            url={item}
          />)
        })
      }
    </div>
  );
};


export const ImageInfiniteEditor = withSelect( (select, props) => {
  const {
    attributes: {
      media,
    },
  } = props;

  const images = media.map((item) => {
    const image = wp.data.select('core').getMedia(item);

    if (typeof image !== 'undefined') {
      return image.source_url;
    }
  });

  return {
    attributes: {
      media: images,
    },
  }

})(ImageInfiniteEditorWithSelect);

Add example of object prop type check

We should document how and why to do the checks when dealing with object prop types.

For example

export const SomeExampleComponentEditor = ({ attributes, actions }) => {
  const {
    paragraph,
    verticalAlign,
  } = attributes;

  const paragraphObject = (typeof paragraph === 'undefined') || paragraph;

  // use it in the component safely.
  ...
}

Add Blog feature to Docs site

We need a couple of quick tutorial articles on how to do some specific things on Eightshift Boilerplate.

First we need to investigate how to enable this feature on Docusaurus and how it works

[FEATURE] New graphics for the Eightshift universe repos

As discussed, this issue covers creating new graphics to represent Eightshift in repos and on social networks.

This is the current illustration:
image

We need these:

  • Eightshift libs
  • Eightshift frontend libs
  • Eightshift boilerplate
  • Eightshift boilerplate plugin
  • Eightshift docs
  • Eightshift forms
  • Eightshift starter task?

Docs styling updates

I'll try to do some styling changes to make existing layout look more usable.
Also I'll play around with the general color pallet of the docs site.

Add custom badged to docs

Add custom badges that link a doc page to specific libs repository and/or source code.

Example of the custom badge for eightshift-libs:

[![docs-source](https://img.shields.io/badge/source-eigthshift--libs-blue?style=for-the-badge&logo=php&labelColor=2a2a2a)](https://github.com/infinum/eightshift-libs)

Example of the custom badge for eightshift-frontend-libs:

[![docs-source](https://img.shields.io/badge/source-eigthshift--frontend--libs-yellow?style=for-the-badge&logo=javascript&labelColor=2a2a2a)](https://github.com/infinum/eightshift-frontend-libs)

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.