Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ jobs:
id: deploy
uses: cloudflare/wrangler-action@v3
with:
wranglerVersion: "4.19.1"
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./dist --project-name "${{ env.PROJECT_NAME }}" --branch "${{ env.BRANCH_NAME }}"
command: deploy --project-name "${{ env.PROJECT_NAME }}" --branch "${{ env.BRANCH_NAME }}"

- name: Extract hash from CF url Deploy
run: |
Expand Down
1 change: 0 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export default defineNuxtConfig({
],

content: {
documentDriven: true,
highlight: {
theme: {
default: "dracula",
Expand Down
12 changes: 4 additions & 8 deletions pages/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@ import { mdWidth, sectionMinWidth, sectionMaxWidth } from '~/consts/consts.ts';
import { getCodeResponse, type RustPlaygroundResponse } from '~/helpers/getCodeResponse';

const route = useRoute()
const { navigation, page, surround, globals } = useContent()

console.log(route.path)
const contentQuery = await queryContent(route.path).findOne();


const isCoding = ref(true);
const isCompiling = ref(false);
const sectionWidth = ref(50);
Expand Down Expand Up @@ -75,18 +71,18 @@ onMounted(() => {
<ContentRenderer :value="doc" class="flex flex-wrap flex-col" />
</div>
<div buttons class="flex justify-between m-2.5 mt-auto">
<a :href="doc && doc.previousPath ? `/${doc.previousPath}` : '/'" :class="{
<NuxtLink :to="doc && doc.previousPath ? `/${doc.previousPath}` : '/'" :class="{
'pointer-events-none text-gray-400': !doc || !doc.previousPath,
}" class="flex items-center">
<CircleChevronLeft :size="30" />
</a>
</NuxtLink>

<a :href="couldClickInNextButton(doc) ? `/${doc.nextPath}` : '/'" :class="{
<NuxtLink :to="couldClickInNextButton(doc) ? `/${doc.nextPath}` : '/'" :class="{
'pointer-events-none text-gray-400': !couldClickInNextButton(doc),
}" class="flex items-center"
>
<CircleChevronRight :size="30" />
</a>
</NuxtLink>
</div>
</section>

Expand Down
Loading