Coder Social home page Coder Social logo

docusauruscommunity / website Goto Github PK

View Code? Open in Web Editor NEW
26.0 4.0 21.0 31.52 MB

Docusaurus.community - Collecting knowledge, tips and tricks for Docusaurus.

Home Page: https://docusaurus.community

License: Creative Commons Attribution Share Alike 4.0 International

JavaScript 0.70% TypeScript 62.29% SCSS 26.15% CSS 8.84% MDX 2.01%
community community-project docusaurus docusaurus-documentation docusaurus-v2

website's People

Contributors

0xcaso avatar ahmadalli avatar billchirico avatar bohyunjung avatar carolstran avatar dillonmic avatar dillp1 avatar homotechsual avatar juicyarts avatar juniors017 avatar lorot19 avatar serpro69 avatar thadguidry avatar wiicolas 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

Watchers

 avatar  avatar  avatar

website's Issues

use @expo/vector-icons

hi it is possible to use @expo/vector-icons?

I ma using createIconSetFromIcoMoon from @expo/vector-icons

import { createIconSetFromIcoMoon } from '@expo/vector-icons';

export default createIconSetFromIcoMoon(
require('./icon-settings.json'),
'Icons',
'icons.ttf'
);
I am using those icons on custom buttons and I got the fallowing error:

ERROR
Font.isLoaded is not a function
TypeError: Font.isLoaded is not a function
at new Icon (webpack-internal:///./node_modules/@expo/vector-icons/build/createIconSet.js:1:2751)
at constructClassInstance (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:12716:18)
at updateClassComponent (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:17425:5)
at beginWork (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:19073:16)
at HTMLUnknownElement.callCallback (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:3945:14)
at Object.invokeGuardedCallbackDev (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:3994:16)
at invokeGuardedCallback (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:4056:31)
at beginWork$1 (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:23959:7)
at performUnitOfWork (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:22774:12)
at workLoopSync (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:22702:5)

How to use icon in sidebar?

Can you provide a detailed tutorial? I am new to use react. Thank you so much

More convenient to use in components than using MDXComponents

Creat file src/components/Icon/index.ts

import React from 'react'
import { Icon } from '@iconify/react'

export function ICON ({ children }: { children: string }) {
  return (
    <span>
        <Icon icon={children} height="24" style={{verticalAlign: "-0.35em"}}></Icon>
    </span>
  )
}

Use in markdown

import { ICON } from '@site/src/components/Icon';
<ICON>mdi:github</ICON>

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.