-
Notifications
You must be signed in to change notification settings - Fork 225
Home
En este repositorio esta alojado el contenido mostrado en nuestro sitio para desarrolladores.
-
El contenido esta escrito en su mayor parte con un lenguaje de marcado ligero personalizado basado en el GitHub Flavored Markdown, en esta pagina encontraras una referencia general para escribir contenido valido.
-
Cada contenido esta disponible en cada uno de los idiomas soportados, a la fecha de edición de esta wiki (Portugués, Ingles y Español)
-
Cada pagina ademas sera replicada por cada país tomando en cuenta los marcados que muestran u ocultan información según el país de destino.
-
Los identificadores para los idiomas son: es, en, pt
-
Los identificadores para países son:
- mla: Argentina
- mlm: Mexico
- mco: Colombia
- mlu: Uruguay
- mcl: Chile
- mlb: Brasil
- mlv: Venezuela
- mpe: Peru
Devsite content syntax guide The content in the devsite is written in markdown text format.
Markdown is a way to style text on the web. You control the display of the document; formatting words as bold or italic, adding images, and creating lists are just a few of the things we can do with Markdown. Mostly, Markdown is just regular text with a few non-alphabetic characters thrown in, like # or *.
Also there is special syntax sugar to specify Mercado Pago's business particularities, such as defining the sites in which a feature is available and content should be displayed, or including user's credentials on code snippets.
Headers
This is an
This text will be bold This will also be bold
You can combine them Lists
Unordered
- Item 1
- Item 2
- Item 2a
- Item 2b Ordered
- Item 1
- Item 2
- Item 3
- Item 3a
- Item 3b Item 1 Item 2 Item 3 Item 3a Item 3b Blockquotes
We're living the future so the present is our past. We're living the future so the present is our past.
Inline code
I think you should use an
<addr>
element here instead.
I think you should use an element here instead.
Syntax highlighting Here’s an example of how you can use syntax highlighting with GitHub Flavored Markdown:
function fancyAlert(arg) { if(arg) { $.facebox({div:'#foo'}) } } You can also simply indent your code by four spaces:
function fancyAlert(arg) { if(arg) { $.facebox({div:'#foo'}) } } Here’s an example of Python code without syntax highlighting:
def foo(): if not bar: return True def foo(): if not bar: return True
Task Lists
- @mentions, #refs, links, formatting, and
tagssupported - list syntax required (any unordered or ordered list supported)
- this is a complete item
- this is an incomplete item If you include a task list in the first comment of an Issue, you will get a handy progress indicator in your issue list. It also works in Pull Requests! @mentions, #refs, links, formatting, and tags supported list syntax required (any unordered or ordered list supported) this is a complete item this is an incomplete item If you include a task list in the first comment of an Issue, you will get a handy progress indicator in your issue list. It also works in Pull Requests! Tables You can create tables by assembling a list of words and dividing them with hyphens - (for the first row), and then separating each column with a pipe |:
First Header | Second Header |
---|---|
Content from cell 1 | Content from cell 2 |
Content in the first column | Content in the second column |
Would become: |
First Header Second Header Content from cell 1 Content from cell 2 Content in the first column Content in the second column Mercado Pago Syntax Link to another article Create a link with the syntax LINKNAME where path is the absolute route to the resource if the resource is located under guides or plugins section, for example if you want to link to the payment button article you the path is: /guides/payments/button/create-button.en.md.
If the resource is located under API reference just link the path without the resource file extension, for example : /reference/identification_types/_identification_types/get/.
Define availability of a document in a site By default a document added to this repository will be displayed for every Mercado Pago site.
If you want to specify a particular group of countries in which this guide should be displayed you may write:
Images The syntax to upload an image in a file is the same as in Markdown.
Format: Links Create an autotranslated code snippet Our engine provides the functionality of script translating. If you write a code snippet in php it gets automatically traduced to Ruby, Python, NodeJS, .net and curl.
screen shot 2017-06-30 at 2 55 40 pm
Create a snippet with a previous description When working on different platforms such as Android and iOS you may want to specify a previous comment for each technology in particular.
We provide a component to display a code snippet with a previous note:
Code snippet ``` ]]] screen shot 2017-06-30 at 2 54 55 pm
Display user credentials in examples In many guides we make references to user credentials, instead of displaying a constant symbolizing user's credential you can display user's own if it's logged in by writing a specific variable name.
With this you can enhance the understanding of the content and making it easier to copy.
ENV_CLIENT_ID ENV_CLIENT_SECRET ENV_PUBLIC_KEY ENV_ACCESS_TOKEN Create variable and localized dummy data In examples usually we create dummy information to display. We provide a tool to contextualize these examples according to a country:
To set a fake name you should write:
[FAKER][NAME]
To set a fake address you should write:
[FAKER][ADDRESS][STREET_ADDRESS]
To learn more about what you can fake, check our fake library fork
El equipo de soporte para desarrolladores de MercadoPago
El equipo de soporte para desarrolladores de MercadoPago