Giter Club home page Giter Club logo

tanzu-dev-portal's Introduction

Netlify Status

About The Project

Tanzu Developer Center Screen Shot

The VMware Tanzu Developer Center is a site specifically built to be a great resource for software development teams. The contributions on the Tanzu Developer Center are from teams across VMware, as well as individuals without.

Our guiding principle is to ensure readers have free, immediate access to all the content on the Tanzu Developer Center. No purchase is ever necessary to access content on the Tanzu Developer Center because it is either open source or an easily accessible trial.

Site Built With

Getting Started Building a Local Deployment of the Tanzu Developer Center

Before you can build a local copy of the Tanzu Developer Center, there are software prerequisites that you’re going to need to install.

Software Installation Prerequisites

  • Install Hugo — 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 built in SCSS/SASS support. 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 install this version:

  • Install NPM — Hugo uses NPM to manage its local packages. If you don’t already have it installed, you’ll need it to move further.

    brew install npm
  • Install act — Used to runs GitHub Action’s tests locally. The Tanzu Developer Center uses GitHub Actions to perform automated testing periodically, and on pull requests.

    NOTE: The tests currently break on act > v0.2.20, be sure to install v0.2.20.

  • Install Docker — Used to build images for local automated tests.

    NOTE: (Mac OS X requires Docker Desktop 2.4, or later)

    brew install docker --cask

Run a Local Copy of the Tanzu Developer Center

To get a local copy of the Tanzu Developer Center up and running follow these steps.

  1. Clone the repository.

    git clone --recurse-submodules https://github.com/vmware-tanzu/tanzu-dev-portal.git
  2. Build a preview of the website. The website will be available at http://localhost:1313/developer.

    make preview

Troubleshooting

Q. I'm receiving an error about cloning themes/docsy

With the change with how the theme files are overridden, the first time you update your branch you may see the following issue when running make preview:

git submodule update --init --recursive
Submodule 'themes/docsy' (https://github.com/google/docsy.git) registered for path 'themes/docsy'
fatal: not a git repository: /private/tmp/tanzu-dev-portal/themes/docsy/../../.git/modules/themes/docsy
Failed to clone 'themes/docsy'. Retry scheduled
BUG: submodule considered for cloning, doesn't need cloning any more?
fatal: could not get a repository handle for submodule 'themes/docsy'
make: *** [theme] Error 1

You can run the following command for a one-time fix:

rm -rf .git/modules && rm -rf themes/docsy && mkdir themes/docsy

Q. make preview is throwing a fatal error: pipe failed error

This is due to the number of files that are opened during the process of building the site. If you're on OSX, this can be addressed with the following command:

sudo launchctl limit maxfiles 65535 200000
ulimit -n 65535
sudo sysctl -w kern.maxfiles=100000
sudo sysctl -w kern.maxfilesperproc=65535

Q. I am on Windows and make preview doesn't work

On Windows, you may need to use hugo server -D to start the application. The site will then be available on http://localhost:1313/

Open Projects, Issues, and Content Backlog

See the open issues and project boards for a list of proposed features, content backlog, and known issues.

Contributing

Content contributions are what make open source and the developer community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

Contributing Code

The code contribution process is documented in CONTRIBUTING.md.

Contributing Content

The content contribution process is documented fully on our GitHub wiki site and includes methods for both VMware employees as well as non-employees to contribute to content or bug fixes.

Code of Conduct

We, the Admin team of the Tanzu Developer Center adhere to a code of conduct that you can read more about here: CODE_OF_CONDUCT.md

Tanzu Developer Center Open Source License

The Tanzu Developer Center is distributed under the Apache License .For more information, see LICENSE.

tanzu-dev-portal's People

Contributors

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

Stargazers

Selim Horri 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.