[GitHub] [incubator-pinot] ChethanUK commented on a change in pull request #5185: Pinot website [WIP]

2020-03-31 Thread GitBox
ChethanUK commented on a change in pull request #5185: Pinot website [WIP]
URL: https://github.com/apache/incubator-pinot/pull/5185#discussion_r400668028
 
 

 ##
 File path: website/scripts/publish_site.sh
 ##
 @@ -0,0 +1,56 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+set -e
+
+ROOT_DIR=$(git rev-parse --show-toplevel)
+WORK_DIR=${ROOT_DIR}/build
+ME=`basename $0`
+echo "Basename $ME"
+
+# ORIGIN_REPO=$(git remote show origin | grep 'Push  URL' | awk -F// '{print 
$NF}')
+ORIGIN_REPO="https://github.com/apache/incubator-pinot-site;
+echo "ORIGIN_REPO: $ORIGIN_REPO"
+
+SITE_TMP=/tmp/pinot-site 
+(
+
+  cd $ROOT_DIR
+  rm -rf $SITE_TMP
+  mkdir $SITE_TMP
+  cd $SITE_TMP
+
+  git clone "https://$GH_TOKEN@$ORIGIN_REPO; .
+  git config user.name "Pinot Site Updater"
+  git config user.email "d...@pinot.apache.org"
+  git checkout asf-master
+
+  # Clean content directory
+  rm -rf $SITE_TMP/content/
+  mkdir $SITE_TMP/content
+
+  # Copy the generated directory to asf folder
+  cp -r $WORK_DIR/* $SITE_TMP/content
+)
+
 
 Review comment:
   Okay!


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org



[GitHub] [incubator-pinot] ChethanUK commented on a change in pull request #5185: Pinot website [WIP]

2020-03-30 Thread GitBox
ChethanUK commented on a change in pull request #5185: Pinot website [WIP]
URL: https://github.com/apache/incubator-pinot/pull/5185#discussion_r400510725
 
 

 ##
 File path: website/docusaurus.config.js
 ##
 @@ -0,0 +1,168 @@
+module.exports = {
+  title: 'Apache Pinot™ (Incubating)',
+  tagline: 'Realtime distributed OLAP datastore',
+  url: 'https://pinot.apache.com',
+  baseUrl: '/',
+  favicon: 'img/favicon.ico',
+  organizationName: 'apache',
+  projectName: 'pinot', 
+  themeConfig: {
+navbar: {
+  hideOnScroll: true,
+  title: 'Pinot™ (Incubating)',
+  logo: {
+alt: 'Pinot',
+src: 'img/logo.svg',
+  },
+  links: [
+{to: 'https://apache-pinot.gitbook.io/apache-pinot-cookbook/', label: 
'Docs', position: 'right'},
+{to: 'https://issues.apache.org/jira/projects/PINOT/issues', label: 
'Jira', position: 'right'},
+{to: 'https://cwiki.apache.org/confluence/display/PINOT', label: 
'Wiki', position: 'right'},
+{
+  href: 'https://github.com/apache/incubator-pinot',
+  label: 'GitHub',
+  position: 'right',
+},
+  ],
+},
+prism: {
+  theme: require('prism-react-renderer/themes/github'),
+  darkTheme: require('prism-react-renderer/themes/dracula'),
+},
+footer: {
+  style: 'light',
+  links: [
+{
+  title: 'About',
+  items: [
+{
+  label: 'What is Pinot?',
+  to: 'https://docs.pinot.apache.org/',
+},
+{
+  label: 'Components',
+  to: 'https://docs.pinot.apache.org/pinot-components',
+},
+{
+  label: 'Architecture',
+  to: 'https://docs.pinot.apache.org/concepts/architecture',
+},
+{
+  label: 'PluginsArchitecture',
+  to: 'https://docs.pinot.apache.org/plugins/plugin-architecture',
+},
+  ],
+},
+{
+  title: 'Components',
+  items: [
+{
+  label: 'Presto',
+  to: 'https://docs.pinot.apache.org/integrations/presto',
+},
+{
+  label: 'PQL',
+  to: 'docs/components/sources',
+},
+{
+  label: 'ThirdEye',
+  to: 'https://docs.pinot.apache.org/integrations/thirdeye',
+},
+{
+  label: 'PowerBI',
+  to: 'docs/components/sinks',
+},
+  ],
+},
+{
+  title: 'Docs',
+  items: [
+{
+  label: 'GettingStarted',
+  to: 'https://docs.pinot.apache.org/getting-started',
+},
+{
+  label: 'PinotComponents',
+  to: 'https://docs.pinot.apache.org/pinot-components',
+},
+{
+  label: 'UserGuide',
+  to: 'https://docs.pinot.apache.org/pinot-user-guide',
+},
+{
+  label: 'Administration',
+  to: 'https://docs.pinot.apache.org/operating-pinot',
+},
+  ],
+},
+{
+  title: 'Community',
+  items: [
+{
+  label: 'Slack',
+  to: 
'https://communityinviter.com/apps/apache-pinot/apache-pinot',
+},
+{
+  label: 'Github',
+  to: 'https://github.com/apache/incubator-pinot',
+},
+{
+  label: 'Twitter',
+  to: 'https://twitter.com/ApachePinot',
+},
+{
+  label: 'Mailing List',
+  to: 
'mailto:dev-subscr...@pinot.apache.org?Subject=SubscribeToPinot',
+},
+  ],
+},
+  ],
+  logo: {
+alt: 'Apache Pinot™ - Incubating',
+src: 'img/logo.svg',
+href: 'https://pinot.apache.org/',
+  },
+  copyright: `Copyright © ${new Date().getFullYear()} The Apache Software 
Foundation.`,
+},
+googleAnalytics: {
+  // TODO
+  trackingID: 'TEMP',
+},
+algolia: {
+  apiKey: 'f3cde09979e469ad62eaea4e115c21ea',
+  indexName: 'apache_pinot',
+  algoliaOptions: {}, // Optional, if provided by Algolia
+},
 
 Review comment:
   Will add this later. Search not required now..


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org