The following fact about Fourier series seems to be well known, but I'm having trouble finding a proof of it online.
Let $f:[-\pi,\pi] \to \Bbb R$ be piecewise differentiable (i.e. differentiable except at finitely many points, at which the function might fail to be continuous). Let $S(f)$ denote the full Fourier series of $f$, $$ S(f)(x) = \sum_{n = - \infty}^\infty \hat f(n) e^{inx}. \tag{1} $$ The limit $S(f)(x)$ exists at all points $x \in [-\pi,\pi]$. Moreover, if $f$ has a jump-discontinuity at $x_0$, then $$ S(f)(x_0) = \frac{f(x_0^+) + f(x_0^-)}{2}, \tag{2} $$ where $f(x_0^+)$ and $f(x_0^-)$ denote one sided limits of $f$ at $x_0$.
My main concern is not the convergence of the series; I am chiefly interested in a justification of Equation (2) above. I have seen the "demonstration" of this phenomenon as it applies to the unit step function, but I want an argument that this should hold more generally. I'd be thrilled if someone provided a proof, but a suitable online reference would also be sufficient.
Here's a partial answer. To begin, I'll prove the following result.
Proof outline: First, a quick note: it is easy to see that if $S(\sigma)$ exists, then it must hold that $S(\sigma)(0) = 0$. Indeed, the fact that $\sigma$ is an odd function ensures that each truncated Fourier series $$ S_N(\sigma)(x) := \sum_{n=-N}^N \hat f(n)e^{inx} $$ is itself odd. Thus, $S_N(\sigma)(0) = 0$ for all $N$, so that $\lim_{N \to \infty} S_N(\sigma)(0) = 0$.
As for proof of existence, it suffices to compute the Fourier series directly. One finds that $$ S_N(f) = \frac 4{\pi} \sum_{n\text{ odd}, n \leq N} \frac 1n \sin\left( \frac{n x}{2}\right). $$ At all $x$, this the above is the partial sum for a convergent alternating series. It remains to argue/show that this function converges to $\sigma(x)$ at the non-zero values of $x \in [-\pi,\pi]$.
I'll use the following facts without proof.
From there, the general result may be argued as follows. Given a suitable $f$ satisfying the hypothesis of the statement, we can build a piecewise constant function $g(x) = \sum_{j=1}^n a_j \sigma (x - x_j)$, where $x_1,\dots,x_n$ are the points at which $f$ is discontinuous and $a_j = \frac 12 (f(x_j^+) - f(x_j^-))$, such that $f - g$ is continuous. By combining the corollary of Lemma 1 and the other lemmas, one can deduce the more general result.