Browse Source

sub folder revert, fix for URL index 404

patch-criadoperez4
Jonathon Hammond 3 years ago
committed by Alejandro Criado-Pérez
parent
commit
607da74d23
  1. 10
      next.config.js
  2. 3
      src/common/routes/get-routes.js
  3. 0
      src/pages/en/404.md
  4. 0
      src/pages/en/api/status.js
  5. 0
      src/pages/en/build-apps/overview.md
  6. 0
      src/pages/en/build-apps/references/authentication.md
  7. 0
      src/pages/en/build-apps/references/bns.md
  8. 0
      src/pages/en/build-apps/references/gaia.md
  9. 0
      src/pages/en/contributing.md
  10. 0
      src/pages/en/index.md
  11. 0
      src/pages/en/references/bns-contract.md
  12. 0
      src/pages/en/references/deploy-tips.md
  13. 0
      src/pages/en/references/faqs.md
  14. 0
      src/pages/en/references/glossary.md
  15. 0
      src/pages/en/references/language-functions.md
  16. 0
      src/pages/en/references/language-keywords.md
  17. 0
      src/pages/en/references/language-overview.md
  18. 0
      src/pages/en/references/language-types.md
  19. 0
      src/pages/en/references/stacking-contract.md
  20. 0
      src/pages/en/references/stacks-node-configuration.md
  21. 0
      src/pages/en/start-mining/mainnet.md
  22. 0
      src/pages/en/start-mining/testnet.md
  23. 0
      src/pages/en/understand-stacks/accounts.md
  24. 0
      src/pages/en/understand-stacks/microblocks.md
  25. 0
      src/pages/en/understand-stacks/mining.md
  26. 0
      src/pages/en/understand-stacks/network.md
  27. 0
      src/pages/en/understand-stacks/overview.md
  28. 0
      src/pages/en/understand-stacks/proof-of-transfer.md
  29. 0
      src/pages/en/understand-stacks/running-mainnet-node.md
  30. 0
      src/pages/en/understand-stacks/running-testnet-node.md
  31. 0
      src/pages/en/understand-stacks/stacking.md
  32. 0
      src/pages/en/understand-stacks/stacks-blockchain-api.md
  33. 0
      src/pages/en/understand-stacks/technical-specs.md
  34. 0
      src/pages/en/understand-stacks/testnet.md
  35. 0
      src/pages/en/understand-stacks/transactions.md
  36. 0
      src/pages/en/write-smart-contracts/overview.md
  37. 0
      src/pages/en/write-smart-contracts/principals.md
  38. 0
      src/pages/en/write-smart-contracts/tokens.md
  39. 0
      src/pages/en/write-smart-contracts/values.md
  40. 21
      src/pages/index/index.md

10
next.config.js

@ -935,6 +935,15 @@ async function redirects() {
];
}
async function rewrites() {
return [
{
source: '/:path*',
destination: '/en/:path*',
},
];
}
module.exports = withFonts(
withBundleAnalyzer({
experimental: {
@ -947,6 +956,7 @@ module.exports = withFonts(
FATHOM_ID: 'FOEMPXUV',
},
redirects,
rewrites,
pageExtensions: ['js', 'ts', 'tsx', 'md', 'mdx'],
webpack: (config, options) => {
config.module.rules.push({

3
src/common/routes/get-routes.js

@ -68,8 +68,9 @@ const routes = allRoutes.map(route => {
// detect the locale
// index.${locale}.md
try {
console.log('JONATHON', route);
const fileContent = fs.readFileSync(
path.join('./src/pages', `${route === '/' ? 'index' : route}/index.md`),
path.join('./src/pages/en', `${route === '/' ? 'index' : route}.md`),
'utf8'
);
const data = fm(fileContent);

0
src/pages/404/index.md → src/pages/en/404.md

0
src/pages/api/status/index.js → src/pages/en/api/status.js

0
src/pages/build-apps/overview/index.md → src/pages/en/build-apps/overview.md

0
src/pages/build-apps/references/authentication/index.md → src/pages/en/build-apps/references/authentication.md

0
src/pages/build-apps/references/bns/index.md → src/pages/en/build-apps/references/bns.md

0
src/pages/build-apps/references/gaia/index.md → src/pages/en/build-apps/references/gaia.md

0
src/pages/contributing/index.md → src/pages/en/contributing.md

0
src/pages/index.md → src/pages/en/index.md

0
src/pages/references/bns-contract/index.md → src/pages/en/references/bns-contract.md

0
src/pages/references/deploy-tips/index.md → src/pages/en/references/deploy-tips.md

0
src/pages/references/faqs/index.md → src/pages/en/references/faqs.md

0
src/pages/references/glossary/index.md → src/pages/en/references/glossary.md

0
src/pages/references/language-functions/index.md → src/pages/en/references/language-functions.md

0
src/pages/references/language-keywords/index.md → src/pages/en/references/language-keywords.md

0
src/pages/references/language-overview/index.md → src/pages/en/references/language-overview.md

0
src/pages/references/language-types/index.md → src/pages/en/references/language-types.md

0
src/pages/references/stacking-contract/index.md → src/pages/en/references/stacking-contract.md

0
src/pages/references/stacks-node-configuration/index.md → src/pages/en/references/stacks-node-configuration.md

0
src/pages/start-mining/mainnet/index.md → src/pages/en/start-mining/mainnet.md

0
src/pages/start-mining/testnet/index.md → src/pages/en/start-mining/testnet.md

0
src/pages/understand-stacks/accounts/index.md → src/pages/en/understand-stacks/accounts.md

0
src/pages/understand-stacks/microblocks/index.md → src/pages/en/understand-stacks/microblocks.md

0
src/pages/understand-stacks/mining/index.md → src/pages/en/understand-stacks/mining.md

0
src/pages/understand-stacks/network/index.md → src/pages/en/understand-stacks/network.md

0
src/pages/understand-stacks/overview/index.md → src/pages/en/understand-stacks/overview.md

0
src/pages/understand-stacks/proof-of-transfer/index.md → src/pages/en/understand-stacks/proof-of-transfer.md

0
src/pages/understand-stacks/running-mainnet-node/index.md → src/pages/en/understand-stacks/running-mainnet-node.md

0
src/pages/understand-stacks/running-testnet-node/index.md → src/pages/en/understand-stacks/running-testnet-node.md

0
src/pages/understand-stacks/stacking/index.md → src/pages/en/understand-stacks/stacking.md

0
src/pages/understand-stacks/stacks-blockchain-api/index.md → src/pages/en/understand-stacks/stacks-blockchain-api.md

0
src/pages/understand-stacks/technical-specs/index.md → src/pages/en/understand-stacks/technical-specs.md

0
src/pages/understand-stacks/testnet/index.md → src/pages/en/understand-stacks/testnet.md

0
src/pages/understand-stacks/transactions/index.md → src/pages/en/understand-stacks/transactions.md

0
src/pages/write-smart-contracts/overview/index.md → src/pages/en/write-smart-contracts/overview.md

0
src/pages/write-smart-contracts/principals/index.md → src/pages/en/write-smart-contracts/principals.md

0
src/pages/write-smart-contracts/tokens/index.md → src/pages/en/write-smart-contracts/tokens.md

0
src/pages/write-smart-contracts/values/index.md → src/pages/en/write-smart-contracts/values.md

21
src/pages/index/index.md

@ -1,21 +0,0 @@
---
title: Stacks documentation
description: Learn about Stacks mining, the STX token, and the Clarity smart contract language
---
-> Content related to developer tools and app development has recently moved to [docs.hiro.so](https://docs.hiro.so/). For more information on the content move, see [this post](https://forum.stacks.org/t/the-evolution-of-the-stacks-documentation-and-a-new-hiro-docs-site/12343) on the Stacks forum.
## Understand Stacks
[@page-reference | grid]
| /understand-stacks/overview, /understand-stacks/proof-of-transfer, /understand-stacks/testnet
## Write smart contracts
[@page-reference | grid]
| /write-smart-contracts/overview, /write-smart-contracts/tokens
## Start mining
[@page-reference | grid]
| /start-mining/mainnet, /start-mining/testnet
Loading…
Cancel
Save