Skip to content

Correct location for creating Decap CMS admin HTML page#10117

Merged
sarah11918 merged 3 commits into
withastro:mainfrom
dasShounak:patch-1
Dec 3, 2024
Merged

Correct location for creating Decap CMS admin HTML page#10117
sarah11918 merged 3 commits into
withastro:mainfrom
dasShounak:patch-1

Conversation

@dasShounak
Copy link
Copy Markdown
Contributor

Description (required)

The admin dashboard won't work if the Decap CMS HTML file is created within the public folder. Astro won't generate the route. Instead it should be created only in src/pages directory. Using .html extension will allow the use of the window.CMS object, which is useful for customizing the admin page.

First-time contributor to Astro Docs?

Yes

The admin dashboard won't work if the Decap CMS HTML file is created within the public folder. Astro won't generate the route. Instead it should be created only in `src/pages` directory. Using `.html` extension will allow the use of the `window.CMS` object, which is useful for customizing the admin page.
@netlify
Copy link
Copy Markdown

netlify Bot commented Nov 28, 2024

Deploy Preview for astro-docs-2 failed. Why did it fail? →

Built without sensitive environment variables

Name Link
🔨 Latest commit 1cc12b1
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/674f42599fd7d100087bd1be

@astrobot-houston
Copy link
Copy Markdown
Contributor

astrobot-houston commented Nov 28, 2024

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/guides/cms/decap-cms.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@astrobot-houston
Copy link
Copy Markdown
Contributor

Hello! Thank you for opening your first PR to Astro’s Docs! 🎉

Here’s what will happen next:

  1. Our GitHub bots will run to check your changes.
    If they spot any broken links you will see some error messages on this PR.
    Don’t hesitate to ask any questions if you’re not sure what these mean!

  2. In a few minutes, you’ll be able to see a preview of your changes on Netlify 🥳.

  3. One or more of our maintainers will take a look and may ask you to make changes.
    We try to be responsive, but don’t worry if this takes a few days.

Copy link
Copy Markdown
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dasShounak , thank you for contributing a fix to docs! 🚀

Unfortunately, we are on a code freeze for v4 Astro docs and are putting this branch into long-term, unmaintained status. So, that just means this PR will have to hang around for a little while until our v5 docs are published and we are accepting community contributions again!

Sorry for the inconvenience, and I'm putting a block on this PR so that it doesn't get accidentally merged before v5 docs are published. Please also understand that there may be conflicts at that time we have to resolve as the docs will be significantly updated. But, we'll find that out next week sometime! 😅

Have a great weekend, and we'll see you in v5! 👋

Copy link
Copy Markdown
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When checks pass, good to go! (Got a deploy preview on Netlify to rerun and work.)

@sarah11918 sarah11918 added improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes) Merge Queue Approved and ready to be merged (wait for feature release if also labelled M-O-R)! labels Dec 3, 2024
@sarah11918
Copy link
Copy Markdown
Member

sarah11918 commented Dec 3, 2024

Got this deploy to work on Netlify, assuming it should be fine!

Thank you for taking the time to update this, and welcome to Team Docs! 🥳

@sarah11918 sarah11918 merged commit 9eedb9a into withastro:main Dec 3, 2024
yanthomasdev added a commit that referenced this pull request Dec 7, 2024
* apostrophecms

* builderio

* buttercms

* caisy

* cloudcannon

* contentful

* cosmic

* craft-cms

* crystallize

* datocms

* decap-cms

* directus

* drupal

* flotiq

* frontmatter-cms

* ghost

* hashnode

* hygraph

* index

* keystatic

* keystonejs

* kontent-ai

* microcms

* payload

* preprcms

* prismic

* sanity

* sitecore

* spinal

* statamic

* storyblok

* strapi

* tina-cms

* umbraco

* wordpress

* decap #10117

* alpinejs

* cloudflare

* db

* deno

* index

* lit

* markdoc

* mdx

* netlify

* node

* partytown

* preact

* prefetch

* react

* sitemap

* solid-js

* svelte

* tailwind

* vercel

* vue

* cra

* docusaurus

* eleventy

* gatsby

* gitbook

* gridsome

* hugo

* jekyll

* nextjs

* nuxtjs

* pelican

* sveltekit

* vuepress

* wordpress

* index

* update existing docs

* add new error docs

* update error-reference

* i18n(ko-KR): update `api-reference.mdx`

* i18n(ko-KR): update `api-reference.mdx`

* #10162

* fix

* i18n(ko-KR): update `content-collections.mdx`

* i18n(ko-KR): update `astro-db.mdx`

* i18n(ko-KR): update `endpoints.mdx`

* fix typo

* v5 - 459

* v5 - 776

* v5 - 966

* update

* i18n(ko-KR): update `actions.mdx`

* i18n(ko-KR): update `imports.mdx`

* i18n(ko-KR): update `actions.mdx`

* i18n(ko-KR): update `upgrade-to/v2.mdx` and `upgrade-to/v3.mdx`

* i18n(ko-KR): create `on-demand-rendering.mdx`

* i18n(ko-KR): create `astro-actions.mdx`

* i18n(ko-KR): update `content-collections.mdx`

* i18n(ko-KR): update `v5.mdx`

* i18n(ko-KR): update `integrations-reference.mdx`

* i18n(ko-KR): update `routing.mdx`

* i18n(ko-KR): update `typescript.mdx`

* i18n(ko-KR): update `typescript.mdx`

* i18n(ko-KR): update `install-and-setup.mdx`

* update

* update

* update

* update

* i18n(ko-KR): update `markdown-content.mdx`

* update

* update

* update

* update

* update

* i18n(ko-KR): update `adapter-reference.mdx`

* update

* update

* i18n(ko-KR): update `internationalization.mdx`

* update

* update links

* i18n(ko-KR): update `middleware.mdx`

* update

* add v4

* update link

* i18n(ko-KR): update `recipes/`

* update link

* update link

* i18n(ko-KR): update `modules/`

* update

* i18n(ko-KR): update `environment-variables.mdx`

* i18n(ko-KR): update `cli-reference.mdx`

* i18n(ko-KR): update `configuration-reference.mdx`

* tutorial - 0

* tutorial - 1

* tutorial - 3

* tutorial - 5

* tutorial - 6

* fix typo

* update link

* upstream `internationalization.mdx` updates

* upstream `configuration-reference.mdx` changes

---------

Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
ArmandPhilippot added a commit to ArmandPhilippot/astro-docs that referenced this pull request May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes) Merge Queue Approved and ready to be merged (wait for feature release if also labelled M-O-R)!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants