GithubHelp home page GithubHelp logo

kieranjeffreysmart / tanzu-dev-portal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vmware-tanzu/tanzu-dev-portal

0.0 1.0 0.0 268.15 MB

Content for Tanzu dev portal

License: Apache License 2.0

HTML 53.42% Dockerfile 0.56% Shell 0.79% JavaScript 16.28% Python 1.51% SCSS 24.54% Makefile 0.67% Perl 0.03% Ruby 2.21%

tanzu-dev-portal's Introduction

VMware Tanzu Developer Center

Building the Site

The VMware Tanzu Developer Center uses Hugo to build the site from Markdown files. You'll need to get Hugo if you want to build and run the site locally. Make sure you install the extended version with SCSS/SASS support built in.

Run locally

To install the latest version of hugo you can use brew install hugo if you are on a Mac. This site pins hugo to a specific version (currently 0.82.0) to build so if you're using a different version, your experience may vary.

To build the site:

git clone --recurse-submodules https://github.com/vmware-tanzu/tanzu-dev-portal
cd tanzu-dev-portal
make preview

A preview of the dev portal will be available at: http://localhost:1313/developer.

If you do not have the extended version installed, you will get an error similar to this when you run make preview:

hugo server -b http://localhost:1313/developer
Start building sites …
ERROR 2021/04/26 14:34:41 TOCSS: failed to transform "css/light-theme.css" (text/x-scss). Check your Hugo installation; you need the extended version to build SCSS/SASS.
Built in 1366 ms
Error: Error building site: TOCSS: failed to transform "css/main.css" (text/x-scss). Check your Hugo installation; you need the extended version to build SCSS/SASS.
make: *** [Makefile:22: preview] Error 255

Run tests locally

Note: requires Docker to be running (On Mac OS X requires Docker Desktop 2.4 or newer)

  1. Install act (NOTE: Currently, the tests break on act > v0.2.20, be sure to install v0.2.20)
  2. Run make test

Spell Check

A GitHub action will run after opening a Pull Request that checks spelling. (You may test this locally using make spell.) You can add entries to the custom_dict.txt file for words that should not be flagged. This file gets sorted as a pre-commit hook so you can just add your entries to the end of the file and not worry about the order.

Publish to Staging

After running and testing locally, opened Pull Requests will be automatically staged by Netlify.

Contributing Content

See the Contributors guide.

tanzu-dev-portal's People

Contributors

bryanfriedman avatar paulczar avatar brianmmcclain avatar tybritten avatar tiffanyfay avatar everythingeverywhere avatar jesse-martinez avatar ntschutta avatar joemoore avatar benwilcock avatar jacksoncvm avatar kieranjeffreysmart avatar actions-user avatar johnharris85 avatar zmb3 avatar anthonyvetter avatar craigtracey avatar billkable avatar dependabot[bot] avatar jomartin-999 avatar ddobrin avatar gagank4ur avatar weimankow avatar rctay avatar gkaur94 avatar ehsaniara avatar maarc avatar mario5gray avatar lucaishovmware avatar wiggitywhitney avatar

Watchers

James Cloos avatar

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.