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
- Clone the repo and initialize all submodules recursively
git clone --recursive https://github.com/SolaceDev/solace-dev-codelabs-site.git
- Navigate to the
/site
directory - Install node dependencies
npm install
- Serve up a local server
npm run serve
- 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
- Set the base directory to
/site
- 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/
- Set the publish directory to
site/dist
Adding new category (color and SVG icon) card.
-
Open
/site/app/styles/categories.scss
. -
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;
-
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');
-
Category icons are located under
site/app/images/
and should be in SVG format, please add your new SVG to this folder. -
Push
-
Create PR