[html] [DOC] Add ts-spark-connector to Spark Connect index and third-party projects (#632)
1 file changed
tree: 2ebca326f35524aa4b17f8f1f1b0659a4b015b37
  1. .bundle/
  2. .dev/
  3. .github/
  4. _layouts/
  5. css/
  6. graphx/
  7. images/
  8. js/
  9. mllib/
  10. news/
  11. pandas-on-spark/
  12. releases/
  13. screencasts/
  14. site/
  15. spark-connect/
  16. sql/
  17. streaming/
  18. talks/
  19. .asf.yaml
  20. .gitignore
  21. .htaccess
  22. 404.md
  23. _config.yml
  24. apple-touch-icon.png
  25. committers.md
  26. community.md
  27. contributing.md
  28. developer-tools.md
  29. doap.rdf
  30. documentation.md
  31. downloads.md
  32. error-message-guidelines.md
  33. examples.md
  34. faq.md
  35. favicon-16x16.png
  36. favicon-32x32.png
  37. favicon.ico
  38. Gemfile
  39. Gemfile.lock
  40. history.md
  41. improvement-proposals.md
  42. index.md
  43. LICENSE
  44. mailing-lists.md
  45. powered-by.md
  46. README.md
  47. release-process.md
  48. research.md
  49. robots.txt
  50. security.md
  51. sitemap.xml
  52. third-party-projects.md
  53. trademarks.md
  54. versioning-policy.md
README.md

Apache Spark Main Website

This repository captures the main Apache Spark website located at https://spark.apache.org. The programming docs under https://spark.apache.org/docs/ are in the main Spark repo, not here. They are built separately for each release of Spark and then copied to the website under the docs/ directory.

Contributing

To contribute changes, build and test the site locally, then submit a pull request with your changes. Unless you are working through the release guide, you only need to commit changes to source files (typically Markdown). A GitHub Actions workflow will generate the corresponding HTML under site/ and push it for you.

Building the site locally

Building the site requires Ruby 3, Jekyll, and Rouge.

gem install bundler -v 2.4.22
bundle install
bundle exec jekyll serve

Building the site with Docker

The most reliable way to ensure a compatible environment is to use the official Docker build image from the Apache Spark repository.

If you haven't already, clone the Apache Spark repository. Navigate to the Spark root directory and run the following command to create the builder image:

docker build \
  --tag docs-builder:latest \
  --file dev/spark-test-image/docs/Dockerfile \
  dev/spark-test-image-util/docs/

Once the image is built, navigate to the spark-website root directory, run the script which processes the Markdown files in the Docker container.

.dev/build-docs.sh

Deploying to production

The website is deployed automatically by ASF Infra. The deployment configuration is tracked by .asf.yaml and is documented here.

One deployment detail that appears to be critical is the presence of the content symlink to site/. Even though ASF Infra is aware of Jekyll, we perhaps do not have the exact setup required for them to automatically use our Jekyll config to understand where the site content lives. Without the content symlink, the website will just show a plain directory listing of the files in this repo.