Skip to content

Commit

Permalink
Asf site (#32)
Browse files Browse the repository at this point in the history
* Testing new branch asf-site pipeline (#12)

* adjusting build pipeline hugo

* adjusting hugo pipeline

* adjusting checkout version

* adjusting and cleaning build pipeline for website (#13)

* adjusting build pipeline hugo

* adjusting hugo pipeline

* adjusting checkout version

* deleting index_old

* adjusting blocks/cover

* adjusting blocks cover

* adjusting blocks cover 2

* adjusting blocks cover 3

* trying adjusting pipeline

* trying to adjust pipeline

* trying to adjust pipeline 2

* adjusting blocks cover template

* adjusting pipeline again

* adjusting pipeline again 2

* adjusting pipeline again 3

* adjusting pipeline again 4

* testing hugo changes

* cleaning build pipeline

* Adjusting published dir (#14)

* adjusting build pipeline hugo

* adjusting hugo pipeline

* adjusting checkout version

* deleting index_old

* adjusting blocks/cover

* adjusting blocks cover

* adjusting blocks cover 2

* adjusting blocks cover 3

* trying adjusting pipeline

* trying to adjust pipeline

* trying to adjust pipeline 2

* adjusting blocks cover template

* adjusting pipeline again

* adjusting pipeline again 2

* adjusting pipeline again 3

* adjusting pipeline again 4

* testing hugo changes

* cleaning build pipeline

* adjusting published dirs

* adjusting published dirs 2

* adjusting published dirs 3

* adjusting published dirs 4

* cleaning published dirs

* Adjusting UI of coming soon website (#17)

* adjusting build pipeline hugo

* adjusting hugo pipeline

* adjusting checkout version

* deleting index_old

* adjusting blocks/cover

* adjusting blocks cover

* adjusting blocks cover 2

* adjusting blocks cover 3

* trying adjusting pipeline

* trying to adjust pipeline

* trying to adjust pipeline 2

* adjusting blocks cover template

* adjusting pipeline again

* adjusting pipeline again 2

* adjusting pipeline again 3

* adjusting pipeline again 4

* testing hugo changes

* cleaning build pipeline

* adjusting published dirs

* adjusting published dirs 2

* adjusting published dirs 3

* adjusting published dirs 4

* cleaning published dirs

* adjusting image

* removing menu directories

* Update hugo.yaml (#19)

Fixed Reddit address

* Merge all work done until now (#23)

* ci: add Azure Static Web Apps workflow file
on-behalf-of: @Azure [email protected]

* Fix doc

* updated gitignore

* Upgraded go from 1.12 to 1.14.15

* Changed deploy on azure

* Removed azure deploy

* tried to remove asciidoctor

* converted contribution-guidelines from asciidoc to markdown

* Fixed openshift

* build(deps): upgraded hugo

Upgraded hugo from 0.128.0 to 0.129.0 and improved other description fields in package.json

* build(dep): upgraded hugo p2

need to explicitely add git to security.exec.allow policy in hugo.yaml.
Removed asciidoctor

BREAKING CHANGE: Removed asciidoctor

* fix: cleanup

removed fileList and fixed some extra spaces in _styles_project.scss

* fix: netlify.toml

reverted file to initial content

* tasks and tools import

* import tasks and tools

* fix: changed .gitignore

removed path  for tasks and tools from ignore

* fix: improved Taskfile.yml

improved tasks for autogenerated docs from tasks and tools.
Changed tools.md template

* docs: added tasks and tools doc

Added autogenerated docs from tasks and tools

* docs: added tasks and tools doc

Added autogenerated docs from tasks and tools

* feat(site):

About page

* feat(docs):

Updated docs

* style(docs):

changed some styling

* style(docs):

changed some styling

* docs: Docker install

fix

* docs: Blockquote shortcode

Completed blockquote shortcode to display blocks:  informative, warning, important

* chore(site): upgraded hugo

bump to 0.133.0

* New diagram test

* feat: handle svg images and place in center

* feat: svg openwhisk image

* feat: svg image on about route

* feat: kube aws azure gcloud image update

* feat: background image

* feat: update image openserverless diagram

* fix: rounded image border and delete shadow

* refactor: update font with baloo2

* fix: openserverless diagram on about and home pages

* Added font Baloo 2 in assets

* Added Quattrocento font

* Fix styles

* Test with webp

* Added disclaimer

* Removed .vscode folder and added to .git ignore

* Readded documentation

---------

Co-authored-by: Michele Sciabarra <[email protected]>
Co-authored-by: bruno <[email protected]>
Co-authored-by: AntonioPiga <[email protected]>

* Added ASF logos (#24)

* ci: add Azure Static Web Apps workflow file
on-behalf-of: @Azure [email protected]

* Fix doc

* updated gitignore

* Upgraded go from 1.12 to 1.14.15

* Changed deploy on azure

* Removed azure deploy

* tried to remove asciidoctor

* converted contribution-guidelines from asciidoc to markdown

* Fixed openshift

* build(deps): upgraded hugo

Upgraded hugo from 0.128.0 to 0.129.0 and improved other description fields in package.json

* build(dep): upgraded hugo p2

need to explicitely add git to security.exec.allow policy in hugo.yaml.
Removed asciidoctor

BREAKING CHANGE: Removed asciidoctor

* fix: cleanup

removed fileList and fixed some extra spaces in _styles_project.scss

* fix: netlify.toml

reverted file to initial content

* tasks and tools import

* import tasks and tools

* fix: changed .gitignore

removed path  for tasks and tools from ignore

* fix: improved Taskfile.yml

improved tasks for autogenerated docs from tasks and tools.
Changed tools.md template

* docs: added tasks and tools doc

Added autogenerated docs from tasks and tools

* docs: added tasks and tools doc

Added autogenerated docs from tasks and tools

* feat(site):

About page

* feat(docs):

Updated docs

* style(docs):

changed some styling

* style(docs):

changed some styling

* docs: Docker install

fix

* docs: Blockquote shortcode

Completed blockquote shortcode to display blocks:  informative, warning, important

* chore(site): upgraded hugo

bump to 0.133.0

* New diagram test

* feat: handle svg images and place in center

* feat: svg openwhisk image

* feat: svg image on about route

* feat: kube aws azure gcloud image update

* feat: background image

* feat: update image openserverless diagram

* fix: rounded image border and delete shadow

* refactor: update font with baloo2

* fix: openserverless diagram on about and home pages

* Added font Baloo 2 in assets

* Added Quattrocento font

* Fix styles

* Test with webp

* Added disclaimer

* Removed .vscode folder and added to .git ignore

* Readded documentation

* Added logo and disclaimer

---------

Co-authored-by: Michele Sciabarra <[email protected]>
Co-authored-by: bruno <[email protected]>
Co-authored-by: AntonioPiga <[email protected]>

* chore(site): added missing DISCLAIMER and NOTICE (#26)

This will fix apache/openserverless#22

Co-authored-by: bruno <[email protected]>

* chore(site): updated tools (#27)

* chore(site): updated tools

Updated tools doc adding opspath

* feat(site): added azure cloud

Added doc for Server on azure (ops cloud azcloud).

---------

Co-authored-by: bruno <[email protected]>

* Publish (#28)

* fixed k3s/_index

* chore:  download page

Completed doc in download page

* chore: fix tutorial page

fixed download link in tutorial

* chore: asf links

added asf link and removed external assets

* chore: draft on gke and openshift

added draft true in frontmatter for gke and openshift

* chore: css fix

fixed a css for top menu

---------

Co-authored-by: bruno <[email protected]>

* pipeline changed (#29)

* fixed k3s/_index

* chore:  download page

Completed doc in download page

* chore: fix tutorial page

fixed download link in tutorial

* chore: asf links

added asf link and removed external assets

* chore: draft on gke and openshift

added draft true in frontmatter for gke and openshift

* chore: css fix

fixed a css for top menu

* fix: github action

changed github action. Moved the publish action on pull_request closed and merged is true

* fix: github action

changed github action. Moved the publish action on pull_request closed and merged is true (or, like before, on push to main)

---------

Co-authored-by: bruno <[email protected]>

* fix: github action

reverted github action

---------

Co-authored-by: MatMol96 <[email protected]>
Co-authored-by: Simon Sigré <[email protected]>
Co-authored-by: Michele Sciabarra <[email protected]>
Co-authored-by: bruno <[email protected]>
Co-authored-by: AntonioPiga <[email protected]>
  • Loading branch information
6 people authored Oct 28, 2024
1 parent 665f569 commit d855f4e
Show file tree
Hide file tree
Showing 79 changed files with 5,248 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: website

on:
push:
branches:
- main

env:
PUBLISH_DIRECTORY: public

permissions:
contents: write

jobs:
publish:
if: github.event_name == 'push' || github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout Production
if: github.ref_name == 'main'
uses: actions/checkout@v4
with:
ref: asf-site
path: ${{ env.PUBLISH_DIRECTORY }}
#- name: Install Asciidoctor
# run: |
# sudo apt-get update
# sudo apt-get install -y asciidoctor
- name: Prepare
working-directory: ${{ env.PUBLISH_DIRECTORY }}
run: |
rm -rf stylesheets
- name: Build Hugo site
run: |
npm install
npm run clean
npm run build:production
- name: Deploy to ASF
working-directory: ${{ env.PUBLISH_DIRECTORY }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "ops+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Published changes from $GITHUB_SHA"
git push
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/public
resources/
node_modules/
package-lock.json
.hugo_build.lock
.env
.direnv/
.vscode
.idea
openserverless-cli
openserverless-task


11 changes: 11 additions & 0 deletions DISCLAIMER
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Apache OpenServerless (Incubating) is an effort undergoing incubation at the Apache
Software Foundation (ASF), sponsored by the Apache Incubator PMC.

Incubation is required of all newly accepted projects until a further review
indicates that the infrastructure, communications, and decision making process
have stabilized in a manner consistent with other successful ASF projects.

While incubation status is not necessarily a reflection of the completeness
or stability of the code, it does indicate that the project has yet to be
fully endorsed by the ASF.

6 changes: 6 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Apache OpenServerless (Incubating)
Copyright 2024 The Apache Software Foundation

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).

51 changes: 51 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: '3'

tasks:

default: task -l

import-tools:
desc: import tool documentation
silent: true
cmds:
- test -d "openserverless-cli" && git pull || git clone https://github.com/apache/openserverless-cli
- |
find openserverless-cli/tools -name "*.md" | while read file
do
name=$(basename $file .md)
echo "Working on tool ${name} in file ${file}"
mkdir -p content/en/docs/reference/tools/$name
echo -e "---\ntitle: $name\n---\n" > content/en/docs/reference/tools/$name/_index.md
sed '/^# /d' "$file" >> content/en/docs/reference/tools/$name/_index.md
# cat $file >> content/en/docs/reference/tools/$name/_index.md
done
- cp tools.md content/en/docs/reference/tools/_index.md
#- rm -rf openserverless-cli

import-task:
desc: import task documentation
silent: true
cmds:
- test -d "openserverless-task" && git pull || git clone https://github.com/apache/openserverless-task
- |
find openserverless-task -name "docopts.md" | while read file
do
tgt=$(echo $file | sed -e 's!openserverless-task/!!' -e 's/docopts/_index/')
echo "> Converting ${file} to ${tgt}"
mkdir -p "content/en/docs/reference/tasks/$(dirname $tgt)"
name="$(basename $(dirname "Tasks"/$tgt))"
echo -e "---\ntitle: ${name}\n---\n" >content/en/docs/reference/tasks/$tgt
sed '/^# /d' "$file" >>content/en/docs/reference/tasks/$tgt
#cat $file >>content/en/docs/reference/tasks/$tgt
done
#- rm -rf openserverless-task

preview:
desc: preview the websites
cmds:
- hugo server

debug:
desc: debug the websites
cmds:
- hugo server --ignoreCache --debug --disableFastRender
107 changes: 107 additions & 0 deletions assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
/* baloo-2-regular - latin */
@font-face {
font-family: 'Baloo 2';
font-style: normal;
font-weight: 400;
src: url('/fonts/baloo-2-v21-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
url('/fonts/baloo-2-v21-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}


/* baloo-2-700 - latin */
@font-face {
font-family: 'Baloo 2';
font-style: normal;
font-weight: 700;
src: url('/fonts/baloo-2-v21-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
url('/fonts/baloo-2-v21-latin-700.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* quattrocento-regular - latin */
@font-face {
font-family: 'Quattrocento';
font-style: normal;
font-weight: 400;
src: url('/fonts/quattrocento-v23-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
url('/fonts/quattrocento-v23-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

p { font-family: "Quattrocento" !important;}

.navbar, aside, .quote-title {
font-family: "Baloo 2" !important;
}

h1, h2, h3 ,h4, h5, .lead {
font-family: "Baloo 2" !important;
}

div.td-content h1,
div.td-content h2,
div.td-content h3,
div.td-content h4,
div.td-content h5,
div.td-content h6 {
color: #265d85 !important;
}

.td-sidebar-nav-active-item {
color: #ff0000;
}

aside{
font-size: 1em !important;
}

.text-black { color: black; }
.text-default { color: black; }
.text-white { color: white; }

.center-image-container {
text-align: center;
}

.center-image-container img {
display: inline-block;
margin: auto;
}

.rounded-image {
border-radius: 15px;
overflow: hidden;
display: inline-block;
}

#ops_asc_cast {
width: 100%;
margin:0 auto;
}

.td-box--6 {
background-color: #245b80;
color: #fff;
}

.disclaimer p {
font-size: 16px;
font-family: "Baloo 2" !important;
}

.asf-logo {
background: white;
padding: 20px;
margin: 8px;
}

.ops-asciinema-ext {
width: 90%; /* Default to 90% of the screen width */
max-width: 600px; /* Ensure it doesn't exceed 450px */
margin: 0 auto; /* Center the div horizontally */
}

@media only screen and (min-width: 600px) {
.ops-asciinema-ext {
width: 600px; /* For screens wider than 450px, set the width to 450px */
}
}

4 changes: 4 additions & 0 deletions assets/scss/_variables_project.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$font-family-base: "Quattrocento";
$td-enable-google-fonts: false;

$primary: #265d85 !default;
73 changes: 73 additions & 0 deletions content/en/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
title: Apache OpenServerless™
---

{{< blocks/cover title="Welcome to Apache OpenServerless™!" height="full" >}}

<a class="btn btn-lg btn-primary me-3 mb-4" href="/docs/">
Learn More <i class="fas fa-arrow-alt-circle-right ms-2"></i>
</a>
<a class="btn btn-lg btn-secondary me-3 mb-4" href="/docs/installation/download/">
Download <i class="fas fa-download ms-2 "></i>
</a>

<h1 class="lead mt-5">Upgrading Kubernetes to a Serverless powerhouse to build your cloud-native A.I. application!</h1>
{{< blocks/link-down color="info" >}}
{{< /blocks/cover >}}

{{% blocks/lead color="primary" %}}

<h3>Apache OpenServerless™ is a <b>distribution</b>, running in any <b>Kubernetes</b> Clusters or even plain Linux <b>Virtual Machine</b>, straightforward to install and easy to use, deploying a <b>Serverless</b> Enviroment ready to use to build <b>A.I. applications</b>. </h3>

<h4>Apache OpenServerless™ lets you <b>stop worrying</b> of building, deploying, configuring and orchestrating containers. You can <b>focus on writing your A.I. code</b> and run it anywere, production ready, <b>without any vendor-lockin</b>.</h4>
{{% /blocks/lead %}}


{{% blocks/section color="dark" type="row" %}}

{{% blocks/feature icon="fab fa-reddit" title="Join our subreddit!" url="https://reddit.com/r/openserverless" %}}
A friendly place to discuss Apache OpenServerless™
{{% /blocks/feature %}}


{{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/apache/openserverless" %}}
We accept [Pull Request](https://github.com/google/docsy-example/pulls) on **GitHub**. New contributors are always welcome!
{{% /blocks/feature %}}

{{% blocks/feature icon="fab fa-x-twitter" title="Follow us on X.com!" url="https://twitter.com/open_serverless" %}}
For announcement of latest features etc.
{{% /blocks/feature %}}

{{% /blocks/section %}}


{{% blocks/section %}}
<span style="color: black">Get involved! Subscribe our mailing list</span><br><a href="mailto:[email protected]">[email protected]</a>
{.h2 .text-center .text-black}
{{% /blocks/section %}}


{{% blocks/section %}}
{{% imgproccenter openserverless-diagram.webp Fit "3456x1728" "rounded-image" %}}
Apache OpenServerless™ Architecture Overview
{{% /imgproccenter %}}
{{% /blocks/section %}}


{{% blocks/section type="row" %}}

<div class="col-md-6 text-center">
<h2>Public Cloud</h2>
{{% imgproccenter public-cloud Fit "242x76" %}}
We support the major public cloud Kubernetes,<br>including <a href="https://aws.amazon.com/eks/">Amazon EKS</a>, <a href="https://azure.microsoft.com/en-us/products/kubernetes-service">Azure AKS</a> and <a href="https://cloud.google.com/kubernetes-engine">Gcloud GKE</a>
{{% /imgproccenter %}}
</div>

<div class="col-md-6 text-center">
<h2>Private Cloud</h2>
{{% imgproccenter private-cloud Fit "217x95" %}}
We support the major private cloud Kubernetes,<br>including <a href="https://www.redhat.com/en/technologies/cloud-computing/openshift">RedHat OpenShift</a>, <a href="https://microk8s.io/">Ubuntu MicroK8S</a> and <a href="https://k3s.io/">SuSE K3S</a>
{{% /imgproccenter %}}
</div>

{{% /blocks/section %}}
Binary file added content/en/about/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d855f4e

Please sign in to comment.