-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #475 from translate-tools/464-create-landing-page
Create landing page
- Loading branch information
Showing
27 changed files
with
16,920 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,12 +73,3 @@ jobs: | |
mkdir ./site | ||
node ../scripts/genCrxUpdateManifest.js > ./site/chromium_updates.xml | ||
# TODO: build index.html with landing page | ||
- name: Deploy to GitHub Pages | ||
uses: Cecilapp/GitHub-Pages-deploy@v3 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
email: [email protected] | ||
build_dir: "./build/site" | ||
branch: gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Site | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
# TODO: run only for changes in `site` directory | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/prepare-build | ||
|
||
- name: Build site | ||
working-directory: "./site" | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Deploy to GitHub Pages | ||
if: github.ref == 'refs/heads/master' | ||
uses: Cecilapp/GitHub-Pages-deploy@v3 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
email: [email protected] | ||
build_dir: "./build" | ||
branch: gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Dependencies | ||
/node_modules | ||
|
||
# Production | ||
/build | ||
|
||
# Generated files | ||
.docusaurus | ||
.cache-loader | ||
|
||
# Misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Web site code for [linguist.io](https://linguist.io) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import type { Config } from '@docusaurus/types'; | ||
|
||
const config: Config = { | ||
title: 'Linguist Translate', | ||
tagline: 'Privacy focused translation', | ||
favicon: 'favicon.svg', | ||
|
||
// Set the production url of your site here | ||
url: 'https://linguister.io', | ||
// Set the /<baseUrl>/ pathname under which your site is served | ||
// For GitHub pages deployment, it is often '/<projectName>/' | ||
baseUrl: '/', | ||
|
||
presets: [ | ||
[ | ||
'@docusaurus/preset-classic', | ||
{ | ||
docs: false, | ||
// docs: { | ||
// path: '../docs', | ||
// include: ['*.md', '*.mdx'], | ||
// }, | ||
blog: false, | ||
}, | ||
], | ||
], | ||
} satisfies Config; | ||
|
||
export default config; |
Oops, something went wrong.