Link ASF promotion workflow in README
1 file changed
tree: abfdf393fd880f6273fd478ce12f46c48751fdbd
  1. .github/
  2. _includes/
  3. _layouts/
  4. _plugins/
  5. assets/
  6. contribution/
  7. docs/
  8. releases/
  9. .asf.yaml
  10. .DS_Store
  11. .gitignore
  12. .htaccess
  13. 404.html
  14. _config.yml
  15. AGENTS.md
  16. assets.md
  17. atom.xml
  18. community.md
  19. doap.rdf
  20. Dockerfile
  21. documentation.md
  22. download.md
  23. Gemfile
  24. Gemfile.lock
  25. helium.json
  26. helium_packages.md
  27. index.md
  28. medium.md
  29. Rakefile
  30. README.md
  31. robot.txt
  32. rss.xml
  33. screenshots.md
  34. security.md
  35. sitemap.txt
  36. supported_interpreters.md
  37. technologies_deployments.md
  38. twitter.md
  39. whats_new.md
  40. zeppelin-site.sh
README.md

Zeppelin Project Website

This readme will walk you through building the Zeppelin website

Requirements

  • Docker: Ensure Docker is installed and running on your machine.
  • Ruby: Check that your Ruby version is compatible with all gems listed in the Gemfile.

Develop website

Follow these steps to set up and run the development environment:

1. Clone the Repository

$ git clone <repository-url>
$ cd <repository-directory>

2. Ensure Docker is Running:

Make sure Docker is installed and running on your machine. Below is an example how.

$ open -a Docker

3. Build the Docker Image:

$ ./zeppelin-site.sh --build-image

4. Run the Development Server:

$ ./zeppelin-site.sh

5. Open the Website:

Open your web browser and go to http://localhost:4000 or http://127.0.0.1:4000.

Adding a new page

$  rake page name="new-page.md"

Build website

Follow these steps to build the production site:

1. Build the Production Site:

$ ./zeppelin-site.sh --build-dist

2. The built site will be available in the _site directory.

Publish website

ASF Infra builds master to the asf-staging branch according to .asf.yaml. After checking https://zeppelin.staged.apache.org, committers with write access can manually promote the staged site to production:

  1. Open the Promote ASF staging to site workflow in GitHub Actions.
  2. Click Run workflow on the master branch.
  3. Type promote in the confirm input.
  4. Run the workflow.

The workflow fetches asf-site and asf-staging, resets asf-site to asf-staging, pushes with --force-with-lease, and verifies that both remote branches point to the same commit.

Troubleshooting and Notes:

Ensure all dependencies are correctly listed and installed.

If you encounter issues, you may need to run:

$ docker run --rm -it -v "$(pwd):/app" zeppelin-site-dev:latest /bin/bash
$ bundle install

Dockerfile and Gemfile Adjustments:

  • Updates to the Dockerfile or Gemfile may include necessary system dependencies for gems like Nokogiri.
  • Refer to these files for specific details.