{"id":15505416,"url":"https://github.com/lekoarts/gatsby-plugin-doctype","last_synced_at":"2025-03-28T18:44:36.470Z","repository":{"id":90058977,"uuid":"265651384","full_name":"LekoArts/gatsby-plugin-doctype","owner":"LekoArts","description":"Change the DOCTYPE of HTML files in Gatsby","archived":false,"fork":false,"pushed_at":"2020-05-20T18:41:28.000Z","size":5,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T19:36:34.356Z","etag":null,"topics":["doctype","gatsby","gatsby-plugin","gatsbyjs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LekoArts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-20T18:20:42.000Z","updated_at":"2023-05-25T08:59:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"40998eb9-cf46-425e-b0f2-14c04b95963c","html_url":"https://github.com/LekoArts/gatsby-plugin-doctype","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LekoArts%2Fgatsby-plugin-doctype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LekoArts%2Fgatsby-plugin-doctype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LekoArts%2Fgatsby-plugin-doctype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LekoArts%2Fgatsby-plugin-doctype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LekoArts","download_url":"https://codeload.github.com/LekoArts/gatsby-plugin-doctype/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246083113,"owners_count":20720910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["doctype","gatsby","gatsby-plugin","gatsbyjs"],"created_at":"2024-10-02T09:23:24.728Z","updated_at":"2025-03-28T18:44:36.449Z","avatar_url":"https://github.com/LekoArts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gatsby-plugin-doctype\n\nChange the DOCTYPE of HTML files in Gatsby. By default, Gatsby adds `\u003c!DOCTYPE html\u003e` to the start to every HTML file it generates. You can now edit the `html` portion.\n\n## Install\n\n```shell\nnpm install gatsby-plugin-doctype\n```\n\n## How to use\n\nInclude the plugin in your `gatsby-config.js` file and use the `doctype` option.\n\n```js=title=gatsby-config.js\nmodule.exports = {\n  plugins: [\n    {\n      resolve: `gatsby-plugin-doctype`,\n      options: {\n        doctype: 'HTML',\n      },\n    },\n  ],\n}\n```\n\nIf you want to use something like `HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\"` you'll need to make sure that you wrap the option with single quotes/backticks or escape the quotes.\n\nRun a `gatsby build` as this plugin only changes files with the `onPostBuild` lifecycle.\n\n---\n\nYou can see the finished result in the HTML files inside `public`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flekoarts%2Fgatsby-plugin-doctype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flekoarts%2Fgatsby-plugin-doctype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flekoarts%2Fgatsby-plugin-doctype/lists"}