forked from getsentry/develop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2ac882d
Showing
60 changed files
with
17,155 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Typescript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# gatsby files | ||
.cache/ | ||
public | ||
|
||
# Mac files | ||
.DS_Store | ||
|
||
# Yarn | ||
yarn-error.log | ||
.pnp/ | ||
.pnp.js | ||
# Yarn Integrity file | ||
.yarn-integrity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
Business Source License 1.1 | ||
|
||
Parameters | ||
|
||
Licensor: Functional Software, Inc. | ||
Licensed Work: Sentry | ||
The Licensed Work is (c) 2019 Functional Software, Inc. | ||
Additional Use Grant: You may make use of the Licensed Work, provided that you do | ||
not use the Licensed Work for an Application Monitoring | ||
Service. | ||
|
||
An "Application Monitoring Service" is a commercial offering | ||
that allows third parties (other than your employees and | ||
contractors) to access the functionality of the Licensed | ||
Work so that such third parties directly benefit from the | ||
error-reporting or application monitoring features of the | ||
Licensed Work. | ||
|
||
Change Date: 2023-04-01 | ||
|
||
Change License: Apache License, Version 2.0 | ||
|
||
For information about alternative licensing arrangements for the Software, | ||
please visit: https://sentry.io/pricing/ | ||
|
||
Notice | ||
|
||
The Business Source License (this document, or the "License") is not an Open | ||
Source license. However, the Licensed Work will eventually be made available | ||
under an Open Source License, as stated in this License. | ||
|
||
License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved. | ||
"Business Source License" is a trademark of MariaDB Corporation Ab. | ||
|
||
----------------------------------------------------------------------------- | ||
|
||
Business Source License 1.1 | ||
|
||
Terms | ||
|
||
The Licensor hereby grants you the right to copy, modify, create derivative | ||
works, redistribute, and make non-production use of the Licensed Work. The | ||
Licensor may make an Additional Use Grant, above, permitting limited | ||
production use. | ||
|
||
Effective on the Change Date, or the fourth anniversary of the first publicly | ||
available distribution of a specific version of the Licensed Work under this | ||
License, whichever comes first, the Licensor hereby grants you rights under | ||
the terms of the Change License, and the rights granted in the paragraph | ||
above terminate. | ||
|
||
If your use of the Licensed Work does not comply with the requirements | ||
currently in effect as described in this License, you must purchase a | ||
commercial license from the Licensor, its affiliated entities, or authorized | ||
resellers, or you must refrain from using the Licensed Work. | ||
|
||
All copies of the original and modified Licensed Work, and derivative works | ||
of the Licensed Work, are subject to this License. This License applies | ||
separately for each version of the Licensed Work and the Change Date may vary | ||
for each version of the Licensed Work released by Licensor. | ||
|
||
You must conspicuously display this License on each original or modified copy | ||
of the Licensed Work. If you receive the Licensed Work in original or | ||
modified form from a third party, the terms and conditions set forth in this | ||
License apply to your use of that work. | ||
|
||
Any use of the Licensed Work in violation of this License will automatically | ||
terminate your rights under this License for the current and all other | ||
versions of the Licensed Work. | ||
|
||
This License does not grant you any right in any trademark or logo of | ||
Licensor or its affiliates (provided that you may use a trademark or logo of | ||
Licensor as expressly required by this License). | ||
|
||
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON | ||
AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, | ||
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND | ||
TITLE. | ||
|
||
MariaDB hereby grants you permission to use this License’s text to license | ||
your works, and to refer to it using the trademark "Business Source License", | ||
as long as you comply with the Covenants of Licensor below. | ||
|
||
Covenants of Licensor | ||
|
||
In consideration of the right to use this License’s text and the "Business | ||
Source License" name and trademark, Licensor covenants to MariaDB, and to all | ||
other recipients of the licensed work to be provided by Licensor: | ||
|
||
1. To specify as the Change License the GPL Version 2.0 or any later version, | ||
or a license that is compatible with GPL Version 2.0 or a later version, | ||
where "compatible" means that software provided under the Change License can | ||
be included in a program with software provided under GPL Version 2.0 or a | ||
later version. Licensor may specify additional Change Licenses without | ||
limitation. | ||
|
||
2. To either: (a) specify an additional grant of rights to use that does not | ||
impose any additional restriction on the right granted in this License, as | ||
the Additional Use Grant; or (b) insert the text "None". | ||
|
||
3. To specify a Change Date. | ||
|
||
4. Not to modify this License in any other way. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
const path = require("path"); | ||
|
||
module.exports = { | ||
// pathPrefix: `/develop`, | ||
siteMetadata: { | ||
title: "Sentry Documentation", | ||
homeUrl: "https://sentry.io", | ||
description: "", | ||
author: "@getsentry", | ||
}, | ||
plugins: [ | ||
{ | ||
resolve: "gatsby-plugin-mdx", | ||
options: { | ||
gatsbyRemarkPlugins: [ | ||
{ | ||
resolve: `gatsby-remark-autolink-headers`, | ||
options: { | ||
className: "anchor", | ||
icon: `<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M10.879 6.05L15 1.93A5.001 5.001 0 0 1 22.071 9l-4.121 4.121a1 1 0 0 1-1.414-1.414l4.12-4.121a3 3 0 1 0-4.242-4.243l-4.121 4.121a1 1 0 1 1-1.414-1.414zm2.242 11.9L9 22.07A5 5 0 1 1 1.929 15l4.121-4.121a1 1 0 0 1 1.414 1.414l-4.12 4.121a3 3 0 1 0 4.242 4.243l4.121-4.121a1 1 0 1 1 1.414 1.414zm-8.364-.122l13.071-13.07a1 1 0 0 1 1.415 1.414L6.172 19.242a1 1 0 1 1-1.415-1.414z" fill="currentColor"></path></svg>`, | ||
enableCustomId: true, | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
"gatsby-remark-autolink-headers", | ||
"gatsby-plugin-react-helmet", | ||
{ | ||
resolve: `gatsby-source-filesystem`, | ||
options: { | ||
name: `images`, | ||
path: `${__dirname}/src/images`, | ||
}, | ||
}, | ||
{ | ||
resolve: `gatsby-source-filesystem`, | ||
options: { | ||
name: `docs`, | ||
path: `${__dirname}/src/docs`, | ||
}, | ||
}, | ||
{ | ||
resolve: `gatsby-source-filesystem`, | ||
options: { | ||
name: `pages`, | ||
path: `${__dirname}/src/pages`, | ||
}, | ||
}, | ||
"gatsby-plugin-sass", | ||
"gatsby-transformer-sharp", | ||
"gatsby-plugin-sharp", | ||
// this (optional) plugin enables Progressive Web App + Offline functionality | ||
// To learn more, visit: https://gatsby.app/offline | ||
// 'gatsby-plugin-offline', | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
const { createFilePath } = require("gatsby-source-filesystem"); | ||
|
||
exports.onCreateNode = ({ node, actions, getNode }) => { | ||
const { createNodeField } = actions; | ||
if (node.internal.type === "Mdx") { | ||
const value = createFilePath({ node, getNode }); | ||
createNodeField({ | ||
name: "slug", | ||
node, | ||
value, | ||
}); | ||
} | ||
}; | ||
|
||
exports.createPages = async function({ actions, graphql }) { | ||
const { data, errors } = await graphql(` | ||
query { | ||
allMdx { | ||
edges { | ||
node { | ||
id | ||
fields { | ||
slug | ||
} | ||
} | ||
} | ||
} | ||
} | ||
`); | ||
|
||
if (errors) { | ||
reporter.panicOnBuild('🚨 ERROR: Loading "createPages" query'); | ||
} | ||
const component = require.resolve(`./src/components/layout.js`); | ||
data.allMdx.edges.forEach(({ node }) => { | ||
actions.createPage({ | ||
path: node.fields.slug, | ||
component, | ||
context: { id: node.id }, | ||
}); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"name": "sentry-docs-develop", | ||
"description": "", | ||
"dependencies": { | ||
"@mdx-js/mdx": "^1.1.5", | ||
"@mdx-js/react": "^1.1.5", | ||
"bootstrap": "4.3.1", | ||
"gatsby": "^2.13.50", | ||
"gatsby-image": "^2.2.8", | ||
"gatsby-plugin-manifest": "^2.2.4", | ||
"gatsby-plugin-mdx": "^1.0.0", | ||
"gatsby-plugin-offline": "^2.2.4", | ||
"gatsby-plugin-react-helmet": "^3.1.3", | ||
"gatsby-plugin-sass": "^2.3.0", | ||
"gatsby-plugin-sharp": "^2.2.9", | ||
"gatsby-remark-autolink-headers": "^2.3.0", | ||
"gatsby-source-filesystem": "^2.1.8", | ||
"gatsby-transformer-remark": "^2.8.0", | ||
"gatsby-transformer-sharp": "^2.2.5", | ||
"node-sass": "^4.14.0", | ||
"prop-types": "^15.7.2", | ||
"react": "^16.8.6", | ||
"react-dom": "^16.8.6", | ||
"react-helmet": "^5.2.1" | ||
}, | ||
"keywords": [ | ||
"gatsby" | ||
], | ||
"scripts": { | ||
"build": "gatsby build", | ||
"develop": "gatsby develop", | ||
"start": "npm run develop", | ||
"format": "prettier --write \"src/**/*.js\"", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"devDependencies": { | ||
"gh-pages": "^2.2.0", | ||
"prettier": "^1.18.2" | ||
}, | ||
"volta": { | ||
"node": "10.13.0", | ||
"yarn": "1.16.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import PropTypes from 'prop-types'; | ||
import React from 'react'; | ||
|
||
const Alert = ({ title, children, level, deepLink, dismiss }) => ( | ||
<div className={`alert alert-${level}`} role="alert" id={deepLink}> | ||
{dismiss && ( | ||
<button | ||
type="button" | ||
className="close" | ||
data-dismiss="alert" | ||
aria-label="Close" | ||
> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
)} | ||
{title && <h5 className="no_toc">{title}</h5>} | ||
<div className="alert-body content-flush-bottom">{children}</div> | ||
</div> | ||
); | ||
|
||
Alert.propTypes = { | ||
title: PropTypes.string, | ||
level: PropTypes.string, | ||
deepLink: PropTypes.bool, | ||
dismiss: PropTypes.bool | ||
}; | ||
|
||
Alert.defaultProps = { | ||
title: null, | ||
level: '', | ||
deepLink: false, | ||
dismiss: false | ||
}; | ||
|
||
export default Alert; |
Oops, something went wrong.