Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish #31

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .github/dependabot.yml

This file was deleted.

61 changes: 36 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,51 @@
name: test
name: website

on:
pull_request:
types: [closed]

push:
branches:
- main


env:
PUBLISH_DIRECTORY: public

permissions:
contents: write

jobs:
tests:
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 Hugo
run: |
sudo apt-get update
sudo apt-get install -y hugo asciidoctor
- name: Prepare
working-directory: ${{ env.PUBLISH_DIRECTORY }}
run: |
rm -rf stylesheets
- name: Build Hugo site
run: |
hugo

#- name: Deploy to ASF
# run: |
# cp -r public/* $GITHUB_WORKSPACE/public/
- 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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ package-lock.json
.hugo_build.lock
.env
.direnv/
.vscode
.idea
openserverless-cli
openserverless-task


6 changes: 0 additions & 6 deletions .vscode/settings.json

This file was deleted.

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/).

54 changes: 45 additions & 9 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,50 @@ version: '3'

tasks:

default: task -l
default: task -l

preview:
desc: preview the websites
cmds:
- hugo server
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

debug:
desc: debug the websites
cmds:
- hugo server --ignoreCache --debug --disableFastRender
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
99 changes: 96 additions & 3 deletions assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
@@ -1,14 +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;
}

.text-black {
color: black;
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 */
}
}

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

Add styles or override variables from the theme here.

*/
:root {
--bs-heading-color: yellow;
}
$primary: #265d85 !default;
72 changes: 69 additions & 3 deletions content/en/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,73 @@
---
title: Apache OpenServerless
title: Apache OpenServerless
---

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

![background](devenv.png)
<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 %}}
Loading