Skip to content

Landing page for Solace CodeLabs, serving codelabs from solace-dev-codelabs repo

License

Notifications You must be signed in to change notification settings

SolaceDev/solace-dev-codelabs-site

Repository files navigation

Netlify Status

Solace Codelabs landing page

The Solace Codelabs landing page that is based on the Google Codelabs tool Note: This is the codelabs.solace.dev landing page itself; individual codelabs are kept separately here https://github.com/SolaceDev/solace-dev-codelabs

Run locally

  1. Clone the repo and initialize all submodules recursively git clone --recursive https://github.com/SolaceDev/solace-dev-codelabs-site.git
  2. Navigate to the /site directory
  3. Install node dependencies npm install
  4. Serve up a local server npm run serve
  5. Navigate to http://localhost:8000 and see the codelabs running locally

Note: To avoid caching issues, either disable caching from the browser developer tools or open in incognito

Netlify setup

  1. Set the base directory to /site
  2. Configure the build command as follows gulp dist --codelabs-dir=./solace-dev-codelabs/codelabs && rm dist/codelabs && cp -r solace-dev-codelabs/codelabs dist/codelabs/
  3. Set the publish directory to site/dist

Contributing

Adding new category (color and SVG icon) card.

  1. Open /site/app/styles/categories.scss.

  2. Scroll down till you see the comment /* Solace - Custom Colours */, under this line you will see color variables for existing categories, organized in alphabetical order. Add a new line similar to the example below, name your new color variable for your category and use a associated HEX color code for your new category.

    $color-java-red: #dc403d;
    
  3. Scroll down till you see the comment /* Solace - CSS Classes */, under this line you will see other variables being used, like the ones created above. Add new lines similar to the example below, use your new color variable, along with the SVG.

    @include codelab-card(['java'],
    $color-java-red, 'java.svg');
    
  4. Category icons are located under site/app/images/ and should be in SVG format, please add your new SVG to this folder.

  5. Push

  6. Create PR

About

Landing page for Solace CodeLabs, serving codelabs from solace-dev-codelabs repo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published