Skip to content

happeo/markdown-widget

Repository files navigation

markdown-widget

Render markdown on Happeo pages

Getting Started

Prerequisites

Happeo Admin access rights

Tools

  • npm
    npm install npm@latest -g
    
  • node version >16
    node -v
    

Development

Prerequisite

You have created a Custom app in Happeo admin and slug is copied to clipboard.

In development mode

  1. Clone the repo
  2. Replace slug in index.js with the clipboard version
  3. Install NPM packages
    npm install
    
  4. Start widget. This will start the webserver and serve the index.html file from localhost:8080.
    npm run start
    
  5. Open Happeo
  6. Goto pages and edit or create page
  7. Add the Markdown widget

Note to start widget in development mock mode. This will start the webserver and serve the index.html file from localhost:8080. Widget-sdk services are mocked.

 npm run dev

In testing or Published mode

  1. Clone the repo
  2. Replace slug in index.js with the clipboard version
  3. Install NPM packages
    npm install
    
  4. Build widget
    npm run build
    
  5. Open Happeo admin and upload bundle to your app.

Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

About

Render markdown on Happeo pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •