Change location for data files

pull/3475/head
Kamran Ahmed 2 years ago
parent b741a0e1ee
commit b6a0255f12
  1. 2
      bin/best-practice-content.cjs
  2. 2
      bin/roadmap-content.cjs
  3. 2
      bin/roadmap-links.cjs
  4. 2
      contributing.md
  5. 4
      sitemap.mjs
  6. 2
      src/components/GuideHeader.astro
  7. 0
      src/data/best-practices/frontend-performance/content/analyse-stylesheets-complexity.md
  8. 0
      src/data/best-practices/frontend-performance/content/analyze-js-for-perf-issues.md
  9. 0
      src/data/best-practices/frontend-performance/content/avoid-404-files.md
  10. 0
      src/data/best-practices/frontend-performance/content/avoid-base64-images.md
  11. 0
      src/data/best-practices/frontend-performance/content/avoid-inline-css.md
  12. 0
      src/data/best-practices/frontend-performance/content/avoid-multiple-inline-js-snippets.md
  13. 0
      src/data/best-practices/frontend-performance/content/bundlephobia.md
  14. 0
      src/data/best-practices/frontend-performance/content/check-dependency-size.md
  15. 0
      src/data/best-practices/frontend-performance/content/choose-image-format-approprietly.md
  16. 0
      src/data/best-practices/frontend-performance/content/chrome-dev-tools.md
  17. 0
      src/data/best-practices/frontend-performance/content/compress-your-images.md
  18. 0
      src/data/best-practices/frontend-performance/content/concatenate-css-single-file.md
  19. 0
      src/data/best-practices/frontend-performance/content/cookie-size-less-4096-bytes.md
  20. 0
      src/data/best-practices/frontend-performance/content/enable-compression.md
  21. 0
      src/data/best-practices/frontend-performance/content/framework-guides.md
  22. 0
      src/data/best-practices/frontend-performance/content/index.md
  23. 0
      src/data/best-practices/frontend-performance/content/inline-critical-css.md
  24. 0
      src/data/best-practices/frontend-performance/content/keep-cookie-count-below-20.md
  25. 0
      src/data/best-practices/frontend-performance/content/keep-dependencies-up-to-date.md
  26. 0
      src/data/best-practices/frontend-performance/content/keep-ttfb-less-1-3s.md
  27. 0
      src/data/best-practices/frontend-performance/content/keep-web-font-under-300k.md
  28. 0
      src/data/best-practices/frontend-performance/content/lighthouse.md
  29. 0
      src/data/best-practices/frontend-performance/content/load-offscreen-images-lazily.md
  30. 0
      src/data/best-practices/frontend-performance/content/make-css-files-non-blocking.md
  31. 0
      src/data/best-practices/frontend-performance/content/minify-css.md
  32. 0
      src/data/best-practices/frontend-performance/content/minify-html.md
  33. 0
      src/data/best-practices/frontend-performance/content/minify-your-javascript.md
  34. 0
      src/data/best-practices/frontend-performance/content/minimize-http-requests.md
  35. 0
      src/data/best-practices/frontend-performance/content/minimize-iframe-count.md
  36. 0
      src/data/best-practices/frontend-performance/content/page-load-time-below-3s.md
  37. 0
      src/data/best-practices/frontend-performance/content/page-speed-insights.md
  38. 0
      src/data/best-practices/frontend-performance/content/page-weight-below-1500.md
  39. 0
      src/data/best-practices/frontend-performance/content/pre-load-urls-where-possible.md
  40. 0
      src/data/best-practices/frontend-performance/content/prefer-vector-images.md
  41. 0
      src/data/best-practices/frontend-performance/content/prevent-flash-text.md
  42. 0
      src/data/best-practices/frontend-performance/content/recommended-guides.md
  43. 0
      src/data/best-practices/frontend-performance/content/remove-unused-css.md
  44. 0
      src/data/best-practices/frontend-performance/content/serve-exact-size-images.md
  45. 0
      src/data/best-practices/frontend-performance/content/set-width-height-images.md
  46. 0
      src/data/best-practices/frontend-performance/content/squoosh-ap.md
  47. 0
      src/data/best-practices/frontend-performance/content/use-cdn.md
  48. 0
      src/data/best-practices/frontend-performance/content/use-http-cache-headers.md
  49. 0
      src/data/best-practices/frontend-performance/content/use-https-on-your-website.md
  50. 0
      src/data/best-practices/frontend-performance/content/use-non-blocking-javascript.md
  51. 0
      src/data/best-practices/frontend-performance/content/use-preconnect-to-load-fonts.md
  52. 0
      src/data/best-practices/frontend-performance/content/use-same-protocol.md
  53. 0
      src/data/best-practices/frontend-performance/content/use-service-workers-for-caching.md
  54. 0
      src/data/best-practices/frontend-performance/content/use-woff2-font-format.md
  55. 0
      src/data/best-practices/frontend-performance/content/web-page-test.md
  56. 0
      src/data/best-practices/frontend-performance/frontend-performance.md
  57. 0
      src/data/guides/asymptotic-notation.md
  58. 0
      src/data/guides/avoid-render-blocking-javascript-with-async-defer.md
  59. 0
      src/data/guides/basic-authentication.md
  60. 0
      src/data/guides/basics-of-authentication.md
  61. 0
      src/data/guides/big-o-notation.md
  62. 0
      src/data/guides/character-encodings.md
  63. 0
      src/data/guides/ci-cd.md
  64. 0
      src/data/guides/consistency-patterns-in-distributed-systems.md
  65. 0
      src/data/guides/design-patterns-for-humans.md
  66. 0
      src/data/guides/dhcp-in-one-picture.md
  67. 0
      src/data/guides/dns-in-one-picture.md
  68. 0
      src/data/guides/history-of-javascript.md
  69. 0
      src/data/guides/http-basic-authentication.md
  70. 0
      src/data/guides/http-caching.md
  71. 0
      src/data/guides/journey-to-http2.md
  72. 0
      src/data/guides/jwt-authentication.md
  73. 0
      src/data/guides/levels-of-seniority.md
  74. 0
      src/data/guides/oauth.md
  75. 0
      src/data/guides/proxy-servers.md
  76. 0
      src/data/guides/random-numbers.md
  77. 0
      src/data/guides/scaling-databases.md
  78. 0
      src/data/guides/session-authentication.md
  79. 0
      src/data/guides/session-based-authentication.md
  80. 0
      src/data/guides/ssl-tls-https-ssh.md
  81. 0
      src/data/guides/sso.md
  82. 0
      src/data/guides/token-authentication.md
  83. 0
      src/data/guides/torrent-client.md
  84. 0
      src/data/guides/unfamiliar-codebase.md
  85. 0
      src/data/guides/what-are-web-vitals.md
  86. 0
      src/data/guides/what-is-internet.md
  87. 0
      src/data/guides/what-is-sli-slo-sla.md
  88. 0
      src/data/guides/why-build-it-and-they-will-come-wont-work-anymore.md
  89. 0
      src/data/link-groups/1.md
  90. 0
      src/data/roadmaps/android/android.md
  91. 0
      src/data/roadmaps/android/faqs.astro
  92. 0
      src/data/roadmaps/angular/angular.md
  93. 0
      src/data/roadmaps/angular/content/100-typescript-basics/100-what-is-typescript.md
  94. 0
      src/data/roadmaps/angular/content/100-typescript-basics/101-why-use-typescript.md
  95. 0
      src/data/roadmaps/angular/content/100-typescript-basics/102-structural-typing.md
  96. 0
      src/data/roadmaps/angular/content/100-typescript-basics/103-type-inference.md
  97. 0
      src/data/roadmaps/angular/content/100-typescript-basics/104-union-types.md
  98. 0
      src/data/roadmaps/angular/content/100-typescript-basics/105-builtin-types.md
  99. 0
      src/data/roadmaps/angular/content/100-typescript-basics/106-type-guard.md
  100. 0
      src/data/roadmaps/angular/content/100-typescript-basics/index.md
  101. Some files were not shown because too many files have changed in this diff Show More

@ -3,7 +3,7 @@ const path = require('path');
const CONTENT_DIR = path.join(__dirname, '../content');
// Directory containing the best-practices
const BEST_PRACTICE_CONTENT_DIR = path.join(__dirname, '../src/best-practices');
const BEST_PRACTICE_CONTENT_DIR = path.join(__dirname, '../src/data/best-practices');
const bestPracticeId = process.argv[2];
const allowedBestPracticeId = fs.readdirSync(BEST_PRACTICE_CONTENT_DIR);

@ -3,7 +3,7 @@ const path = require('path');
const CONTENT_DIR = path.join(__dirname, '../content');
// Directory containing the roadmaps
const ROADMAP_CONTENT_DIR = path.join(__dirname, '../src/roadmaps');
const ROADMAP_CONTENT_DIR = path.join(__dirname, '../src/data/roadmaps');
const roadmapId = process.argv[2];
const allowedRoadmapIds = fs.readdirSync(ROADMAP_CONTENT_DIR);

@ -6,7 +6,7 @@ if (!roadmapId) {
console.error('Error: roadmapId is required');
}
const fullPath = path.join(__dirname, `../src/roadmaps/${roadmapId}`);
const fullPath = path.join(__dirname, `../src/data/roadmaps/${roadmapId}`);
if (!fs.existsSync(fullPath)) {
console.error(`Error: path not found: ${fullPath}!`);
process.exit(1);

@ -23,7 +23,7 @@ For the existing roadmaps, please follow the details listed for the nature of co
## Adding Content
Find [the content directory inside the relevant roadmap](https://github.com/kamranahmedse/developer-roadmap/tree/master/src/roadmaps). Please keep the following guidelines in mind when submitting content:
Find [the content directory inside the relevant roadmap](https://github.com/kamranahmedse/developer-roadmap/tree/master/src/data/roadmaps). Please keep the following guidelines in mind when submitting content:
- Content must be in English.
- Put a brief description about the topic on top of the file and the a list of links below with each link having title of the URL.

@ -2,11 +2,11 @@ import path from 'node:path';
import fs from 'node:fs/promises';
async function getRoadmapIds() {
return fs.readdir(path.join(process.cwd(), 'src/roadmaps'));
return fs.readdir(path.join(process.cwd(), 'src/data/roadmaps'));
}
async function getBestPracticesIds() {
return fs.readdir(path.join(process.cwd(), 'src/best-practices'));
return fs.readdir(path.join(process.cwd(), 'src/data/best-practices'));
}
export function shouldIndexPage(pageUrl) {

@ -32,7 +32,7 @@ const { author } = frontmatter;
<span class='mx-1.5'>&middot;</span>
<a
class='text-blue-400 hover:text-blue-500 hover:underline'
href={`https://github.com/kamranahmedse/roadmap.sh/tree/master/src/guides/${guide.id}.md`}
href={`https://github.com/kamranahmedse/roadmap.sh/tree/master/src/data/guides/${guide.id}.md`}
target='_blank'>Improve this Guide</a
>
</p>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save