Skip to content

Commit

Permalink
Added NEW version of showing markdown for a community.
Browse files Browse the repository at this point in the history
  • Loading branch information
carleshf committed Apr 24, 2024
1 parent 3388164 commit 636976d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.fixAll.eslint": true
"source.fixAll": "explicit",
"source.fixAll.eslint": "explicit"
},
"eslint.validate": [
"javascript",
Expand Down
Empty file modified nginx.conf
100644 → 100755
Empty file.
19 changes: 6 additions & 13 deletions pages/benchmarking/_community/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,18 @@
</v-card>
</v-tab-item>

<v-tab v-if="markdownContent != ''" class="justify-start">
<v-tab v-if="community.summary" class="justify-start">
<v-icon left> mdi-information-outline </v-icon>
Summary
</v-tab>
<v-tab-item
v-if="markdownContent != ''"
class="ma-5 mt-5 mt-md-0"
:transition="false"
>
<v-tab-item class="ma-5 mt-5 mt-md-0" :transition="false">
<v-card outlined class="pa-5" elevation="1">
<v-row no-gutters align="center">
<v-col>
<marked-wrapper :markdown="markdownContent" />
<marked-wrapper
v-if="community.summary"
:markdown="community.summary"
/>
</v-col>
</v-row>
</v-card>
Expand Down Expand Up @@ -197,12 +196,6 @@ export default {
this.setCurrentEvent(this.$route.query.event);
}
},
created() {
const {
default: md,
} = require(`~/static/markdown/projects/${this.$route.params.community}.md`);
this.markdownContent = md || '';
},
methods: {
handleEventSelection(event) {
this.$store.commit('community/setCurrentEvent', event);
Expand Down

0 comments on commit 636976d

Please sign in to comment.