Skip to content

Commit

Permalink
docs: Move Splinter API into separate section (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler committed Feb 14, 2024
1 parent d6f0c85 commit 1bfb537
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 37 deletions.
14 changes: 14 additions & 0 deletions docs/api/browser.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.. Copyright 2012 splinter authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
.. meta::
:description: Splinter API documentation for DriverAPI and ElementAPI
:keywords: splinter, python, api documentation, api, driverapi, elementapi, driver creation

Browser
=======

.. module:: splinter.browser

.. autofunction:: Browser
13 changes: 1 addition & 12 deletions docs/api/driver-and-element-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,16 @@
:description: Splinter API documentation for DriverAPI and ElementAPI
:keywords: splinter, python, api documentation, api, driverapi, elementapi, driver creation


Browser
=======

.. module:: splinter.browser

.. autofunction:: Browser



.. module:: splinter.driver

DriverAPI
=========


.. autoclass:: DriverAPI
:members:

ElementAPI
==========

.. autoclass:: ElementAPI
:members:
:members:
22 changes: 0 additions & 22 deletions docs/api/index.rst

This file was deleted.

12 changes: 11 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,17 @@
iframes-and-alerts
http-status-code-and-exception
http-proxies
api/index

.. toctree::
:caption: Splinter API
:hidden:

api/browser
api/driver-and-element-api
api/cookie-manager
api/element-list
api/request-handling
api/exceptions


.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Tutorial
++++++++

Before starting, make sure Splinter is :doc:`installed </install>`
Before starting, make sure Splinter is :doc:`installed <install/install>`

This tutorial provides a simple example, teaching step by step how to:

Expand Down
2 changes: 1 addition & 1 deletion docs/why.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Splinter is used to write web browser automation scripts.

The project has two primary goals:

* Provide a :doc:`common, high-level API </api/index>` on top of existing
* Provide a common, high-level API on top of existing
browser automation tools such as `Selenium`_. The API is an abstraction layer
that is human-friendly and designed for easy, efficient scripting.

Expand Down

0 comments on commit 1bfb537

Please sign in to comment.