diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..d8b2c227 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,53 @@ +# Workflow to build and deploy site to Github Pages using Hugo + +# Name of Workflow +name: Capa pages + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "deploy" + deploy: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + + # Step 1 - Checks-out your repository under $GITHUB_WORKSPACE + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: true # Fetch Hugo themes + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + + # Step 2 - Sets up the latest version of Hugo + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: 'latest' + + # Step 3 - Clean and don't fail + - name: Clean public directory + run: rm -rf docs + + # Step 4 - Builds the site using the latest version of Hugo + # Also specifies the theme we want to use + - name: Build + run: hugo --theme=docsy + + # Step 5 - Create name file + - name: Create cname file + run: echo 'freshswift.net' > docs/CNAME + + # Step 6 - Push our generated site to our gh-pages branch + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs \ No newline at end of file diff --git a/config.toml b/config.toml index b3c10a2d..13df082d 100644 --- a/config.toml +++ b/config.toml @@ -15,8 +15,8 @@ theme = ["docsy"] enableGitInfo = true # Language settings -contentDir = "content/en" -defaultContentLanguage = "en" +contentDir = "content/zh" +defaultContentLanguage = "zh" defaultContentLanguageInSubdir = false # Useful when translating. enableMissingTranslationPlaceholders = true @@ -84,7 +84,7 @@ weight = 1 [languages.zh] title = "Capa" description = "Cloud Runtimes API" -languageName ="Chinese" +languageName ="简体中文" contentDir = "content/zh" time_format_default = "02.01.2006" time_format_blog = "02.01.2006" @@ -131,7 +131,7 @@ version = "0.0" url_latest_version = "https://github.com/reactivegroup/capa.io" # Repository configuration (URLs for in-page links to opening issues and suggesting changes) -github_repo = "https://github.com/google/docsy-example" +github_repo = "https://github.com/reactivegroup/capa" # An optional link to a related project repo. For example, the sibling repository where your product code lives. github_project_repo = "https://github.com/reactivegroup/capa" @@ -161,13 +161,13 @@ breadcrumb_disable = false # Set to true to disable the About link in the site footer footer_about_disable = false # Set to false if you don't want to display a logo (/assets/icons/logo.svg) in the top navbar -navbar_logo = true +navbar_logo = false # Set to true if you don't want the top navbar to be translucent when over a `block/cover`, like on the homepage. navbar_translucent_over_cover_disable = false # Enable to show the side bar menu in its compact state. sidebar_menu_compact = false # Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled) -sidebar_search_disable = false +sidebar_search_disable = true # Adds a H2 section titled "Feedback" to the bottom of each doc. The responses are sent to Google Analytics as events. # This feature depends on [services.googleAnalytics] and will be disabled if "services.googleAnalytics.id" is not set. diff --git a/content/zh/_index.html b/content/zh/_index.html index 2c4ed880..3115f9f7 100644 --- a/content/zh/_index.html +++ b/content/zh/_index.html @@ -14,8 +14,8 @@ Download -

Porridge temperature assessment - in the cloud!

- {{< blocks/link-down color="info" >}} + + {{< /blocks/cover >}} @@ -26,65 +26,65 @@ {{% /blocks/lead %}} -{{< blocks/section color="dark" >}} -{{% blocks/feature icon="fa-lightbulb" title="New chair metrics!" %}} + + -{{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/google/docsy-example" %}} + -{{% blocks/feature icon="fab fa-twitter" title="Follow us on Twitter!" url="https://twitter.com/docsydocs" %}} + -{{< /blocks/section >}} + -{{< blocks/section >}} + {{< blocks/section >}} -{{% blocks/feature icon="fab fa-app-store-ios" title="Download **from AppStore**" %}} -Get the Goldydocs app! +{{% blocks/feature icon="fab fa-github" title="Give us your feedback!" url="https://github.com/reactivegroup/capa" %}} +We hope to hear from you [here](https://github.com/reactivegroup/capa/issues)! {{% /blocks/feature %}} -{{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/google/docsy-example" %}} -We do a [Pull Request](https://github.com/google/docsy-example/pulls) contributions workflow on **GitHub**. New users are always welcome! +{{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/reactivegroup/capa" %}} +We do a [Pull Request](https://github.com/reactivegroup/capa/pulls) contributions workflow on **GitHub**. New users are always welcome! {{% /blocks/feature %}} -{{% blocks/feature icon="fab fa-twitter" title="Follow us on Twitter!" url="https://twitter.com/GoHugoIO" %}} +{{% blocks/feature icon="fab fa-github" title="Follow us on Github!" url="https://github.com/reactivegroup/capa" %}} For announcement of latest features etc. {{% /blocks/feature %}} {{< /blocks/section >}} -{{< blocks/section >}} + -
+ -{{< /blocks/section >}} + diff --git a/content/zh/docs/Overview/_index.md b/content/zh/docs/Overview/_index.md index 20cd03a8..8bbbd6f6 100644 --- a/content/zh/docs/Overview/_index.md +++ b/content/zh/docs/Overview/_index.md @@ -36,7 +36,7 @@ This is the Capa SDK for Java, including the following features: **参考资料:** https://github.com/dapr/dapr/issues/3261 -### Why not DAPR +### Why not Dapr 设计思想和Dapr等项目是相同的,但是Dapr等项目走的非常靠前,其逻辑依赖于独立部署的dapr-sidecar来实现。 diff --git a/docs/404.html b/docs/404.html index 0f43e6ba..3be287b6 100644 --- a/docs/404.html +++ b/docs/404.html @@ -3,7 +3,7 @@ - + @@ -35,8 +35,8 @@ - - + +