Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/oxygenxml/blog
Browse files Browse the repository at this point in the history
  • Loading branch information
ionescumihai committed Jun 28, 2024
2 parents fc01218 + b46aa39 commit 685023e
Show file tree
Hide file tree
Showing 187 changed files with 6,299 additions and 841 deletions.
21 changes: 21 additions & 0 deletions .contentfusion/ditaProject.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<project xmlns="https://www.dita-ot.org/project">
<context id="nwQcREgTDuzrCKr" name="abcdef">
<input href="../oxygen_xml_blog.ditamap"/>
</context>
<context id="IukfVpqKsJWNBFd" name="Blog">
<input href="../oxygen_xml_blog.ditamap"/>
</context>
<publication id="webhelp" transtype="webhelp-responsive"/>
<publication id="pdf" transtype="pdf-css-html5"/>
<deliverable id="PDF-1704797224129" name="PDF">
<context idref="IukfVpqKsJWNBFd"/>
<output href="pdf-output"/>
<publication idref="pdf"/>
</deliverable>
<deliverable id="d-Oxygen_XML_Blog_to_WebHelp_Responsive-1715330605782" name="Oxygen XML Blog to WebHelp Responsive">
<context idref="IukfVpqKsJWNBFd"/>
<output href="webhelp-output"/>
<publication idref="webhelp"/>
</deliverable>
</project>
31 changes: 31 additions & 0 deletions .github/workflows/ai-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Validate Blog With AI For Grammar Checks

on:
pull_request:
branches: [ master ]
types: [ opened, synchronize, reopened ]
jobs:
check-grammar-using-ai:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- name: Make gradlew executable
run: chmod +x ./build/gradlewCustom
- name: Build with Gradle
env: #Or as an environment variable
AI_LICENSE_KEY: ${{secrets.AI_LICENSE_KEY}}
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
cd ./build/
./gradlewCustom --build-file build-validate-ai.gradle --info --stacktrace runAIValidation
if test -f ../report.md; then cat ../report.md > $GITHUB_STEP_SUMMARY;exit 1; fi
34 changes: 34 additions & 0 deletions .github/workflows/publish_netlify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish Blog to Netlify

on:
push:
branches:
- master

jobs:
publish-netlify:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Make gradlew executable
run: chmod +x ./build/gradlewCustom
- name: Build with Gradle
env: # Or as an environment variable
LICENSE_KEY: ${{secrets.LICENSE_KEY}}
run: |
cd ./build
./gradlewCustom --info --stacktrace
- name: Publish
uses: South-Paw/action-netlify-cli@1.0.1
id: netlify
with:
args: 'deploy --json --prod --dir \"./site\" --message \"production [${{ github.sha }}]\"'
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.OXYGEN_XML_BLOG_NETLIFY }}
NETLIFY_SITE_ID: ${{ secrets.OXYGEN_XML_BLOG_NETLIFY_SIDE_ID }}
36 changes: 36 additions & 0 deletions .github/workflows/publish_s3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Blog to Amazon S3

on:
push:
branches:
- master

jobs:
publish-s3:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Make gradlew executable
run: chmod +x ./build/gradlewCustom
- name: Build with Gradle
env: # Or as an environment variable
LICENSE_KEY: ${{secrets.LICENSE_KEY}}
run: |
cd ./build
./gradlewCustom --info --stacktrace
- uses: shallwefootball/s3-upload-action@master
name: Upload S3
id: S3
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
destination_dir: 'blog'
source_dir: './site'
28 changes: 28 additions & 0 deletions .github/workflows/validate-check-completion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Validate And Check For Completeness Blog

on:
pull_request:
branches: [ master ]
types: [ opened, synchronize, reopened ]

jobs:
validate-check-completeness:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Make gradlew executable
run: chmod +x ./build/gradlewCustom
- name: Build with Gradle
env: # Or as an environment variable
SCRIPTING_LICENSE_KEY: ${{secrets.SCRIPTING_LICENSE_KEY}}
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
run: |
cd ./build
./gradlewCustom --build-file build-validate-check.gradle --info --stacktrace runValidation
if test -f ../validationReport.md; then cat ../validationReport.md > $GITHUB_STEP_SUMMARY;exit 1; fi
23 changes: 0 additions & 23 deletions .github/workflows/workflow.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Oxygen XML Blog
# Oxygen XML Blog

The Oxygen XML Blog project contains all the resources used to publish the Oxygen
XML Blog in DITA format.
You can contribute with pull requests extra topics to the Oxygen XML Blog and if accepted
the topics will appear as blog posts.
The blog contents are automatically published using Netlify: https://oxygenxmlblog.netlify.com/
The blog contents are automatically published to: https://blog.oxygenxml.com/

Copyright and License
---------------------
Copyright 2020 Syncro Soft SRL.
Copyright 2024 Syncro Soft SRL.

The materials in this repository are licensed under [Creative Commons Attribution Share Alike 4.0 (CC BY SA)](https://creativecommons.org/licenses/by-sa/4.0/legalcode)
6 changes: 3 additions & 3 deletions blog-project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xmlns="https://www.dita-ot.org/project">
<context name="Oxygen XML Blog" id="blog">
<input href="oxygen_xml_blog.ditamap"/>
</context>
</context>

<deliverable name="Oxygen XML Blog to WebHelp Responsive" id="wh-responsive">
<context idref="blog"/>
Expand All @@ -12,13 +12,13 @@
</publication>
</deliverable>

<deliverable name="Oxygen XML Blog to PDF" id="pdf">
<!--<deliverable name="Oxygen XML Blog to PDF" id="pdf">
<context idref="blog"/>
<output href="site"/>
<publication transtype="pdf-css-html5">
<param name="pdf.publishing.template" href="publishing/webhelpBlogTemplate"/>
</publication>
</deliverable>
</deliverable>-->

<deliverable name="Oxygen XML Blog to EPUB" id="epub">
<context idref="blog"/>
Expand Down
Loading

0 comments on commit 685023e

Please sign in to comment.