Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
samricotta committed May 19, 2023
1 parent fdefd62 commit 2d1f472
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
- main
paths:
- "docs/**"
- "x/**/*.md"
- .github/workflows/deploy-docs.yml

permissions:
Expand All @@ -35,10 +34,6 @@ jobs:
# npm install npm should be removed when https://github.com/npm/cli/issues/4942 is fixed
- name: Build 🔧
- run: yarn install --frozen-lockfile
- run: yarn crowdin:sync
- name: Clean Crowdin Front Matter issues
run: bash clean.sh
shell: bash
- run: yarn build

- name: Deploy 🚀
Expand Down
6 changes: 3 additions & 3 deletions custom-version-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ module.exports = function (_context, _options) {

async loadContent() {
// Read the versions.json file to get the list of versions
const versionsJsonPath = path.join(_context.siteDir, 'versions.json');
const versionsJsonPath = path.join(_context.siteDir, 'cosmos-sdk-docs', 'versions.json');
const versions = JSON.parse(fs.readFileSync(versionsJsonPath, 'utf8'));

// Read the version config file
const versionConfigPath = path.join(_context.siteDir, 'version_config.json');
const versionConfigPath = path.join(_context.siteDir, 'cosmos-sdk-docs', 'version_config.json');
const versionConfig = JSON.parse(fs.readFileSync(versionConfigPath, 'utf8'));

// Read all the files in the /docs folder
const docsPath = path.join(_context.siteDir, 'docs');
const docsPath = path.join(_context.siteDir, 'cosmos-sdk-docs', 'docs');
const files = getAllFiles(docsPath);

// Iterate through the list of versions
Expand Down

0 comments on commit 2d1f472

Please sign in to comment.