Giter Club home page Giter Club logo

sphinx-docfx-yaml's Introduction

This is not an officially supported Google product.

This is a forked version of the original from https://github.com/docascode/sphinx-docfx-yaml.

Feel free to use this forked repository for personal or experimental use, use the original otherwise.

Sphinx DocFX YAML

Sphinx DocFX YAML is an exporter for the Sphinx Autodoc module into DocFX YAML.

You can read the full documentation online at http://sphinx-docfx-yaml.readthedocs.io

Contents

.. toctree::
   :glob:
   :maxdepth: 2

   design
   layout
   api

Basic Workflow

  • Write RST that includes Python autodoc
  • Render internal doctree into YAML
  • Output YAML into output directory

Install

To use this forked version, install GCP docfx-yaml:

pip install gcp-sphinx-docfx-yaml

Then add it to your Sphinx project's conf.py:

# Order matters here.
# The extension must be defined *after* autodoc,
# because it uses a signal that autodoc defines
extensions = ['sphinx.ext.autodoc', 'docfx_yaml.extension']

Make sure you are using autodoc in your code somewhere:

.. automodule:: foo.bar

Then build your documentation:

make html

Inside your build directory (_build/html usually), the docfx_yaml will contain the YAML files that are output.

Testing

To run the tests in this repository, run:

pip install tox
tox -e docs

from the top directory of this repository.

Design

Read more about the design in our :doc:`design`.

Layout

This project has a few different pieces at this point. It's primary goal was to integrate the Azure Python SDK into the docfx tooling. You can read more about the pieces currently set up in the :doc:`layout`.

Napoleon Support

We support sphinx.ext.napoleon for parsing docstrings in other formats. Currently all markup that maps to existing Sphinx info field lists will work, along with Examples. In order to pull examples out, you need the napoleon_use_admonition_for_examples set to True.

sphinx-docfx-yaml's People

Contributors

busunkim96 avatar dandhlee avatar dependabot[bot] avatar gcf-owl-bot[bot] avatar google-cloud-policy-bot[bot] avatar parthea avatar release-please[bot] avatar renovate-bot avatar surferjeffatgoogle avatar yoshi-automation avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.