Skip to content

Commit

Permalink
feat(docs): small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
NikGurev committed Jul 19, 2024
1 parent 23dedcd commit 83cd326
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,13 @@ export class DocsLiveExampleViewer {
const docsContentPath = `docs-content/examples-source/${this.exampleData.packagePath}`;

const observables = this.exampleData.files.map((fileName) => {
const language = this.determineLanguage(fileName);
const importPath = `${docsContentPath}/${fileName}`;
return this.fetchCode(importPath).pipe(
map((content) => ({
filename: this.determineLanguage(fileName),
filename: language,
content: content,
language: this.determineLanguage(fileName)
language
}))
);
});
Expand Down

0 comments on commit 83cd326

Please sign in to comment.